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

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: Added a comment for PostTask in AppListServiceAsh. Created 4 years, 9 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 30ca7a247dbd43e18b625bee74aa3f13e57a799c..2e30b2f9884fa379ae50eb1f857944fffb3da277 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -28,6 +28,7 @@
#include "chrome/browser/ui/browser_window.h"
#include "chrome/grit/chromium_strings.h"
#include "grit/theme_resources.h"
+#include "ui/app_list/app_list_controller.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
@@ -120,10 +121,9 @@ void ChromeShellDelegate::Exit() {
chrome::AttemptUserExit();
}
-app_list::AppListViewDelegate* ChromeShellDelegate::GetAppListViewDelegate() {
+app_list::AppListController* ChromeShellDelegate::GetAppListController() {
DCHECK(ash::Shell::HasInstance());
- return AppListServiceAsh::GetInstance()->GetViewDelegate(
- Profile::FromBrowserContext(GetActiveBrowserContext()));
+ return AppListServiceAsh::GetInstance()->GetAppListController();
}
ash::ShelfDelegate* ChromeShellDelegate::CreateShelfDelegate(

Powered by Google App Engine
This is Rietveld 408576698