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

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: Cleaned up a bit 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
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..1d6dedc40c816d58d493824f57e86ee031acb419 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.
+ // for use with command line switch --load-extension=path or
+ // --load-and-launch-app.
// This is equivalent to Load, except that it runs synchronously and
// optionally launches the extension once it's loaded.
koz (OOO until 15th September) 2013/05/30 00:22:22 This function no longer optionally launches the ex
benwells 2013/05/30 01:47:43 Done.
- void LoadFromCommandLine(const base::FilePath& extension_path,
- bool launch_on_load);
+ // 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_;

Powered by Google App Engine
This is Rietveld 408576698