Move application restart and relaunch code out of ExtensionService.
This apps specific code now lives in AppLoadService in the apps/
component.
BUG=159366, 159265, 175381
Review URL: https://chromiumcodereview.appspot.com/15947007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203382 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/unpacked_installer.h b/chrome/browser/extensions/unpacked_installer.h
index d5964c5..18a3a91 100644
--- a/chrome/browser/extensions/unpacked_installer.h
+++ b/chrome/browser/extensions/unpacked_installer.h
@@ -39,11 +39,14 @@
void Load(const base::FilePath& extension_path);
// Loads the extension from the directory |extension_path|;
- // for use with command line switch --load-extension=path.
- // This is equivalent to Load, except that it runs synchronously and
- // optionally launches the extension once it's loaded.
- void LoadFromCommandLine(const base::FilePath& extension_path,
- bool launch_on_load);
+ // for use with command line switch --load-extension=path or
+ // --load-and-launch-app=path.
+ // This is equivalent to Load, except that it reads the extension from
+ // |extension_path| synchronously.
+ // The return value indicates whether the installation has begun successfully.
+ // The id of the extension being loaded is returned in |extension_id|.
+ bool LoadFromCommandLine(const base::FilePath& extension_path,
+ std::string* extension_id);
// Allows prompting for plugins to be disabled; intended for testing only.
bool prompt_for_plugins() { return prompt_for_plugins_; }
@@ -111,9 +114,6 @@
// version.
bool require_modern_manifest_version_;
- // Whether to launch the extension once it's loaded.
- bool launch_on_load_;
-
// Gives access to common methods and data of an extension installer.
ExtensionInstaller installer_;