Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Unified Diff: chrome/browser/extensions/unpacked_installer.h

Issue 15947007: Move application restart and relaunch code out of ExtensionService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pafooey Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/platform_app_launcher.cc ('k') | chrome/browser/extensions/unpacked_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/unpacked_installer.h
diff --git a/chrome/browser/extensions/unpacked_installer.h b/chrome/browser/extensions/unpacked_installer.h
index d5964c5d4f22b82dbc91752b5f083d692148b85d..18a3a91217ac178d45c56135aca87408ccb27a2f 100644
--- a/chrome/browser/extensions/unpacked_installer.h
+++ b/chrome/browser/extensions/unpacked_installer.h
@@ -39,11 +39,14 @@ class UnpackedInstaller
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 @@ class UnpackedInstaller
// 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_;
« no previous file with comments | « chrome/browser/extensions/platform_app_launcher.cc ('k') | chrome/browser/extensions/unpacked_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698