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

Unified Diff: chrome/browser/ui/webui/ntp/app_launcher_handler.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/ui/webui/ntp/app_launcher_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
index 9963f23365ed3166189b2f0d98c5111a6e214871..94481e18729dea660c9f60bd7d2bb80be3dc904f 100644
--- a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
+++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
@@ -906,7 +906,7 @@ void AppLauncherHandler::PromptToEnableApp(const std::string& extension_id) {
return; // Only one prompt at a time.
extension_id_prompting_ = extension_id;
- GetExtensionInstallUI()->ConfirmReEnable(this, extension);
+ GetExtensionInstallPrompt()->ConfirmReEnable(this, extension);
}
void AppLauncherHandler::ExtensionUninstallAccepted() {
@@ -974,10 +974,10 @@ ExtensionUninstallDialog* AppLauncherHandler::GetExtensionUninstallDialog() {
return extension_uninstall_dialog_.get();
}
-ExtensionInstallUI* AppLauncherHandler::GetExtensionInstallUI() {
+ExtensionInstallPrompt* AppLauncherHandler::GetExtensionInstallPrompt() {
if (!extension_install_ui_.get()) {
extension_install_ui_.reset(
- new ExtensionInstallUI(Profile::FromWebUI(web_ui())));
+ new ExtensionInstallPrompt(Profile::FromWebUI(web_ui())));
}
return extension_install_ui_.get();
}

Powered by Google App Engine
This is Rietveld 408576698