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

Unified Diff: chrome/browser/chrome_browser_main_extra_parts_exo.cc

Issue 2250863003: exo: Run exo in mus+ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 4 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 | « no previous file | components/exo/BUILD.gn » ('j') | components/exo/wm_helper.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « no previous file | components/exo/BUILD.gn » ('j') | components/exo/wm_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698