| Index: chrome/browser/chrome_browser_main_extra_parts_exo.cc
|
| diff --git a/chrome/browser/chrome_browser_main_extra_parts_exo.cc b/chrome/browser/chrome_browser_main_extra_parts_exo.cc
|
| index ee29d96126806cd0c65dc54b19fb4690cb4fdca1..95ee3dab02462498a787b46bc4e7953e276dbdea 100644
|
| --- a/chrome/browser/chrome_browser_main_extra_parts_exo.cc
|
| +++ b/chrome/browser/chrome_browser_main_extra_parts_exo.cc
|
| @@ -110,22 +110,22 @@ class ChromeBrowserMainExtraPartsExo::WaylandWatcher
|
| };
|
| #endif
|
|
|
| -ChromeBrowserMainExtraPartsExo::ChromeBrowserMainExtraPartsExo()
|
| - : arc_notification_surface_manager_(new arc::ArcNotificationSurfaceManager),
|
| - display_(new exo::Display(arc_notification_surface_manager_.get())) {}
|
| +ChromeBrowserMainExtraPartsExo::ChromeBrowserMainExtraPartsExo() {}
|
|
|
| ChromeBrowserMainExtraPartsExo::~ChromeBrowserMainExtraPartsExo() {}
|
|
|
| void ChromeBrowserMainExtraPartsExo::PreProfileInit() {
|
| - if (!chrome::ShouldOpenAshOnStartup())
|
| + if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kEnableWaylandServer))
|
| return;
|
|
|
| - if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kEnableWaylandServer)) {
|
| - wayland_server_ = exo::wayland::Server::Create(display_.get());
|
| - wayland_watcher_ =
|
| - base::WrapUnique(new WaylandWatcher(wayland_server_.get()));
|
| - }
|
| + arc_notification_surface_manager_ =
|
| + base::MakeUnique<arc::ArcNotificationSurfaceManager>();
|
| + const bool using_mus = !chrome::ShouldOpenAshOnStartup();
|
| + display_ = base::MakeUnique<exo::Display>(
|
| + using_mus, arc_notification_surface_manager_.get());
|
| + wayland_server_ = exo::wayland::Server::Create(display_.get());
|
| + wayland_watcher_ = base::MakeUnique<WaylandWatcher>(wayland_server_.get());
|
| }
|
|
|
| void ChromeBrowserMainExtraPartsExo::PostMainMessageLoopRun() {
|
|
|