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

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: Moving quick-enable-app-host feature; adding App Host install code for unpacked extension installer. 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 e9541dec8204defc135dbc6dfef30595eab22ef2..bf0aba9e615ba52b59b9141b83e9565391f832c2 100644
--- a/chrome/browser/extensions/crx_installer.h
+++ b/chrome/browser/extensions/crx_installer.h
@@ -12,6 +12,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/version.h"
+#include "chrome/browser/extensions/app_host_installer.h"
#include "chrome/browser/extensions/crx_installer_error.h"
#include "chrome/browser/extensions/extension_install_prompt.h"
#include "chrome/browser/extensions/sandboxed_unpacker.h"
@@ -214,8 +215,15 @@ 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 Host is installed, and then
+ // proceeds to post CompleteExtensionInstall().
+ void BeginInstall();
+
+ // Callback founction for AppHostInstaller.
+ void OnAppHostInstallation(bool success);
+
+ // Runs on File thread. Installs the unpacked extension into the profile and
+ // notifies the frontend.
void CompleteInstall();
// Result reporting.
@@ -359,6 +367,9 @@ class CrxInstaller
bool has_requirement_errors_;
+ // Helper to install App Host.
+ AppHostInstaller app_host_installer_;
+
DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
};

Powered by Google App Engine
This is Rietveld 408576698