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

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

Issue 2391253004: Use mojo Shelf interfaces for both mash and classic ash. (Closed)
Patch Set: Address most comments, except manifest, need to sync. Created 4 years, 2 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 930f3de6d654a933348ddf794209d60e24628afd..528640c91f046f9b5d98e221ccaefe52388ea0b6 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -434,8 +434,7 @@ app_list::AppListPresenter* ChromeShellDelegate::GetAppListPresenter() {
ash::ShelfDelegate* ChromeShellDelegate::CreateShelfDelegate(
ash::ShelfModel* model) {
if (!shelf_delegate_) {
- shelf_delegate_ =
- ChromeLauncherControllerImpl::CreateInstance(nullptr, model);
+ shelf_delegate_ = new ChromeLauncherControllerImpl(nullptr, model);
sky 2016/10/07 22:59:37 Does this leak?
msw 2016/10/07 23:13:01 No, it's owned by the unique_ptr WmShell::shelf_de
shelf_delegate_->Init();
}
return shelf_delegate_;
« no previous file with comments | « chrome/browser/ui/ash/ash_init.cc ('k') | chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698