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

Unified Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc

Issue 11087071: Making ShowExtensionInstallDialog a callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments 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/api/webstore_private/webstore_private_api.cc
diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
index 9959e34c19341ec63d0c451767af5b9a71cf9d56..3c0266c369dea685f1fd844f96a3028fa4a63fad 100644
--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
@@ -14,7 +14,6 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/crx_installer.h"
#include "chrome/browser/extensions/extension_function_dispatcher.h"
-#include "chrome/browser/extensions/extension_install_dialog.h"
#include "chrome/browser/extensions/extension_prefs.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/webstore_installer.h"
@@ -325,7 +324,11 @@ void BeginInstallWithManifestFunction::OnWebstoreParseSuccess(
install_prompt_.reset(
chrome::CreateExtensionInstallPromptWithBrowser(GetCurrentBrowser()));
- install_prompt_->ConfirmWebstoreInstall(this, dummy_extension_, &icon_);
+ install_prompt_->ConfirmWebstoreInstall(
+ this,
+ dummy_extension_,
+ &icon_,
+ ExtensionInstallPrompt::ShowDialogCallback());
Aaron Boodman 2012/10/11 20:28:50 This is super confusing. I thought this was a func
sail 2012/10/11 21:18:47 Changed to ExtensionInstallPrompt::GetDefaultShowD
// Control flow finishes up in InstallUIProceed or InstallUIAbort.
}

Powered by Google App Engine
This is Rietveld 408576698