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

Unified Diff: chrome/browser/extensions/extension_webstore_private_api.cc

Issue 10388252: Refactoring ExtenionInstallUI to abstract the Browser references. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Yoyo's comments. Created 8 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/extension_webstore_private_api.cc
diff --git a/chrome/browser/extensions/extension_webstore_private_api.cc b/chrome/browser/extensions/extension_webstore_private_api.cc
index 8aa813bef31fcc6131209e5e6e82536eb962c97c..0efbf68c3165914db5c400ad28e2bca128493c4c 100644
--- a/chrome/browser/extensions/extension_webstore_private_api.cc
+++ b/chrome/browser/extensions/extension_webstore_private_api.cc
@@ -357,7 +357,7 @@ void BeginInstallWithManifestFunction::OnWebstoreParseSuccess(
parsed_manifest_.reset(parsed_manifest);
std::string error;
- dummy_extension_ = ExtensionInstallUI::GetLocalizedExtensionForDisplay(
+ dummy_extension_ = ExtensionInstallPrompt::GetLocalizedExtensionForDisplay(
parsed_manifest_.get(), id, localized_name_, "", &error);
if (!dummy_extension_) {
@@ -366,8 +366,8 @@ void BeginInstallWithManifestFunction::OnWebstoreParseSuccess(
return;
}
- install_ui_.reset(new ExtensionInstallUI(profile()));
- install_ui_->ConfirmWebstoreInstall(this, dummy_extension_, &icon_);
+ install_prompt_.reset(new ExtensionInstallPrompt(profile()));
+ install_prompt_->ConfirmWebstoreInstall(this, dummy_extension_, &icon_);
// Control flow finishes up in InstallUIProceed or InstallUIAbort.
}

Powered by Google App Engine
This is Rietveld 408576698