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

Unified Diff: chrome/browser/ui/ash/chrome_shell_delegate.cc

Issue 1770993002: wip: Refactoring Ash's AppListController, moving the bulk of the logic to chrome/browser/ui/ash/app… Base URL: https://chromium.googlesource.com/chromium/src.git@small_5_apps
Patch Set: AppListShower to new component: //ui/app_list/shower, GetViewDelegate() in GetViewDelegate(), test … Created 4 years, 8 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/ash/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc
index 08b3c3948253dd1f81d922ceebf3d04d8653df4c..49eb530fc7be3c7c32744c268656cd3f0e7fbe3d 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -32,6 +32,7 @@
#include "chrome/browser/ui/scoped_tabbed_browser_displayer.h"
#include "chrome/grit/chromium_strings.h"
#include "grit/theme_resources.h"
+#include "ui/app_list/shower/app_list_shower.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
@@ -139,10 +140,9 @@ void ChromeShellDelegate::OpenUrl(const GURL& url) {
displayer.browser()->window()->GetNativeWindow());
}
-app_list::AppListViewDelegate* ChromeShellDelegate::GetAppListViewDelegate() {
+app_list::AppListShower* ChromeShellDelegate::GetAppListShower() {
DCHECK(ash::Shell::HasInstance());
- return AppListServiceAsh::GetInstance()->GetViewDelegate(
- Profile::FromBrowserContext(GetActiveBrowserContext()));
+ return AppListServiceAsh::GetInstance()->GetAppListShower();
}
ash::ShelfDelegate* ChromeShellDelegate::CreateShelfDelegate(

Powered by Google App Engine
This is Rietveld 408576698