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

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

Issue 11968034: Enable profile switching for standalone App Launcher via the Settings App. (Closed) Base URL: git://nomatter.syd/chromium/src.git@master
Patch Set: respond to comments Created 7 years, 11 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 bcbd5562319250923fa48bf2422bd44035c3253d..e0fe8ac1c00aef6592dbd00150506784a2a16d56 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -413,7 +413,8 @@ app_list::AppListViewDelegate*
DCHECK(ash::Shell::HasInstance());
// Shell will own the created delegate, and the delegate will own
// the controller.
- return new AppListViewDelegate(new AppListControllerDelegateAsh());
+ Profile* profile = ProfileManager::GetDefaultProfileOrOffTheRecord();
+ return new AppListViewDelegate(new AppListControllerDelegateAsh(), profile);
}
ash::LauncherDelegate* ChromeShellDelegate::CreateLauncherDelegate(

Powered by Google App Engine
This is Rietveld 408576698