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

Unified Diff: chrome/browser/ui/extensions/extension_install_ui_default.cc

Issue 12207104: Refactor app_list_util.h into AppListService abstract base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes cocoa, back to windows Created 7 years, 10 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/extensions/extension_install_ui_default.cc
diff --git a/chrome/browser/ui/extensions/extension_install_ui_default.cc b/chrome/browser/ui/extensions/extension_install_ui_default.cc
index e8bd56feef4a05155b6bdeca97df00591090a473..cb2ea248fe11b3de5e71d160b35fca3d0c896a05 100644
--- a/chrome/browser/ui/extensions/extension_install_ui_default.cc
+++ b/chrome/browser/ui/extensions/extension_install_ui_default.cc
@@ -15,7 +15,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/themes/theme_service.h"
#include "chrome/browser/themes/theme_service_factory.h"
-#include "chrome/browser/ui/app_list/app_list_util.h"
+#include "chrome/browser/ui/app_list_service.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/browser_finder.h"
@@ -108,9 +108,8 @@ void OnAppLauncherEnabledCompleted(const extensions::Extension* extension,
SkBitmap* icon,
bool use_bubble,
bool use_launcher) {
-#if defined(ENABLE_APP_LIST)
if (use_launcher) {
- chrome::ShowAppList(browser->profile());
+ AppListService::Get()->ShowAppList(browser->profile());
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_APP_INSTALLED_TO_APPLIST,
@@ -118,7 +117,6 @@ void OnAppLauncherEnabledCompleted(const extensions::Extension* extension,
content::Details<const std::string>(&extension->id()));
return;
}
-#endif
if (use_bubble) {
chrome::ShowExtensionInstalledBubble(extension, browser, *icon);

Powered by Google App Engine
This is Rietveld 408576698