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

Unified Diff: chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc

Issue 2835063003: mash: Use ChromeLauncherControllerImpl, remove Mus subclass stub. (Closed)
Patch Set: Add comment and separate mash-only members. Created 3 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
« no previous file with comments | « chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc
diff --git a/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc b/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc
index 2e1474dc43da2b62f1ffb2e0fd5ba39bcdf795d9..3a1bb87afc85350c14b32cc4efad5e031cecc151 100644
--- a/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc
+++ b/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc
@@ -9,6 +9,7 @@
#include "ash/public/cpp/window_properties.h"
#include "ash/public/interfaces/window_pin_type.mojom.h"
#include "ash/root_window_controller.h"
+#include "ash/shelf/shelf_model.h"
#include "ash/shell.h"
#include "base/memory/ptr_util.h"
#include "chrome/browser/chrome_browser_main.h"
@@ -17,7 +18,7 @@
#include "chrome/browser/ui/ash/cast_config_client_media_router.h"
#include "chrome/browser/ui/ash/chrome_new_window_client.h"
#include "chrome/browser/ui/ash/chrome_shell_content_state.h"
-#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h"
+#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h"
#include "chrome/browser/ui/ash/media_client.h"
#include "chrome/browser/ui/ash/session_controller_client.h"
#include "chrome/browser/ui/ash/system_tray_client.h"
@@ -94,9 +95,12 @@ void ChromeBrowserMainExtraPartsAsh::PostProfileInit() {
if (ash_util::IsRunningInMash()) {
DCHECK(!ash::Shell::HasInstance());
DCHECK(!ChromeLauncherController::instance());
- chrome_launcher_controller_mus_ =
- base::MakeUnique<ChromeLauncherControllerMus>();
- chrome_launcher_controller_mus_->Init();
+ // TODO(crbug.com/557406): Synchronize this ShelfModel with the one in Ash.
+ chrome_shelf_model_ = base::MakeUnique<ash::ShelfModel>();
+ chrome_launcher_controller_ =
+ base::MakeUnique<ChromeLauncherControllerImpl>(
+ nullptr, chrome_shelf_model_.get());
+ chrome_launcher_controller_->Init();
chrome_shell_content_state_ = base::MakeUnique<ChromeShellContentState>();
}
@@ -116,6 +120,8 @@ void ChromeBrowserMainExtraPartsAsh::PostProfileInit() {
}
void ChromeBrowserMainExtraPartsAsh::PostMainMessageLoopRun() {
+ chrome_launcher_controller_.reset();
+ chrome_shelf_model_.reset();
vpn_list_forwarder_.reset();
volume_controller_.reset();
new_window_client_.reset();
« no previous file with comments | « chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698