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

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

Issue 11054006: Make application shortcuts point to app_host.exe, install App Host during app installation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixing crashing ExtensionServiceTest.LoadExtensionsWithPlugins unit test, caused by usage of const … Created 8 years, 2 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/crx_installer.h
diff --git a/chrome/browser/extensions/crx_installer.h b/chrome/browser/extensions/crx_installer.h
index 6f84a4915df447b5d213d82288b81afe8969e592..c78081dd38148d4f57e778e396f9f5718a7e09a8 100644
--- a/chrome/browser/extensions/crx_installer.h
+++ b/chrome/browser/extensions/crx_installer.h
@@ -31,7 +31,7 @@ class RequirementsChecker;
//
// Installing a CRX is a multi-step process, including unpacking the crx,
// validating it, prompting the user, and installing. Since many of these
-// steps must occur on the file thread, this class contains a copy of all data
+// steps must occur on the FILE thread, this class contains a copy of all data
// necessary to do its job. (This also minimizes external dependencies for
// easier testing).
//
@@ -220,8 +220,17 @@ class CrxInstaller
// that it is OK to install this extension.
void ConfirmInstall();
- // Runs on File thread. Install the unpacked extension into the profile and
- // notify the frontend.
+ // Runs on FILE thread. Ensures that app is not downgraded. If App Host is
+ // not installed, calls installer and posts OnAppHostInstallationComplete()
+ // as call back. Else proceeds to CompleteInstall().
+ void BeginInstall();
+
+ // Runs on FILE thread. Callback function for AppHostInstaller.
+ // If not |success|, shows error message. Else proceeds to CompleteInstall().
+ void OnAppHostInstallationComplete(bool success);
+
+ // Runs on FILE thread. Installs the unpacked extension into the profile and
+ // notifies the frontend.
void CompleteInstall();
// Result reporting.
@@ -312,7 +321,7 @@ class CrxInstaller
// The client we will work with to do the installation. This can be NULL, in
// which case the install is silent.
- // NOTE: we may be deleted on the file thread. To ensure the UI is deleted on
+ // NOTE: we may be deleted on the FILE thread. To ensure the UI is deleted on
// the main thread we don't use a scoped_ptr here.
ExtensionInstallPrompt* client_;

Powered by Google App Engine
This is Rietveld 408576698