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

Unified Diff: chrome/browser/ui/webui/ntp/app_launcher_handler.h

Issue 10388252: Refactoring ExtenionInstallUI to abstract the Browser references. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced + mac fix Created 8 years, 6 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.h
diff --git a/chrome/browser/ui/webui/ntp/app_launcher_handler.h b/chrome/browser/ui/webui/ntp/app_launcher_handler.h
index 88494c51c6ac42bdaf706bba0120ba0b27b16e25..6459933c392cb79145c10326b25a60d145991b6b 100644
--- a/chrome/browser/ui/webui/ntp/app_launcher_handler.h
+++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.h
@@ -10,7 +10,7 @@
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/cancelable_request.h"
-#include "chrome/browser/extensions/extension_install_ui.h"
+#include "chrome/browser/extensions/extension_install_prompt.h"
#include "chrome/browser/extensions/extension_uninstall_dialog.h"
#include "chrome/browser/favicon/favicon_service.h"
#include "chrome/browser/prefs/pref_change_registrar.h"
@@ -29,7 +29,7 @@ class Profile;
// The handler for Javascript messages related to the "apps" view.
class AppLauncherHandler : public content::WebUIMessageHandler,
public ExtensionUninstallDialog::Delegate,
- public ExtensionInstallUI::Delegate,
+ public ExtensionInstallPrompt::Delegate,
public content::NotificationObserver {
public:
explicit AppLauncherHandler(ExtensionService* extension_service);
@@ -143,7 +143,7 @@ class AppLauncherHandler : public content::WebUIMessageHandler,
virtual void ExtensionUninstallAccepted() OVERRIDE;
virtual void ExtensionUninstallCanceled() OVERRIDE;
- // ExtensionInstallUI::Delegate:
+ // ExtensionInstallPrompt::Delegate:
virtual void InstallUIProceed() OVERRIDE;
virtual void InstallUIAbort(bool user_initiated) OVERRIDE;
@@ -151,9 +151,9 @@ class AppLauncherHandler : public content::WebUIMessageHandler,
// needed.
ExtensionUninstallDialog* GetExtensionUninstallDialog();
- // Returns the ExtensionInstallUI object for this class, creating it if
+ // Returns the ExtensionInstallPrompt object for this class, creating it if
// needed.
- ExtensionInstallUI* GetExtensionInstallUI();
+ ExtensionInstallPrompt* GetExtensionInstallPrompt();
// Helper that uninstalls all the default apps.
void UninstallDefaultApps();
@@ -180,7 +180,7 @@ class AppLauncherHandler : public content::WebUIMessageHandler,
scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_;
// Used to show confirmation UI for enabling extensions in incognito mode.
- scoped_ptr<ExtensionInstallUI> extension_install_ui_;
+ scoped_ptr<ExtensionInstallPrompt> extension_install_ui_;
// The id of the extension we are prompting the user about.
std::string extension_id_prompting_;
« no previous file with comments | « chrome/browser/ui/webui/extensions/install_extension_handler.cc ('k') | chrome/browser/ui/webui/ntp/app_launcher_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698