Commit c3eb0eeb authored by reveman's avatar reveman Committed by Commit bot

exo: Add comment explaining why wayland server creation can fail.

BUG=
TEST=

Review-Url: https://codereview.chromium.org/2562363002
Cr-Commit-Position: refs/heads/master@{#437886}
parent a8bf8fe8
...@@ -131,6 +131,7 @@ void ChromeBrowserMainExtraPartsExo::PreProfileInit() { ...@@ -131,6 +131,7 @@ void ChromeBrowserMainExtraPartsExo::PreProfileInit() {
display_ = display_ =
base::MakeUnique<exo::Display>(arc_notification_surface_manager_.get()); base::MakeUnique<exo::Display>(arc_notification_surface_manager_.get());
wayland_server_ = exo::wayland::Server::Create(display_.get()); wayland_server_ = exo::wayland::Server::Create(display_.get());
// Wayland server creation can fail if XDG_RUNTIME_DIR is not set correctly.
if (wayland_server_) if (wayland_server_)
wayland_watcher_ = base::MakeUnique<WaylandWatcher>(wayland_server_.get()); wayland_watcher_ = base::MakeUnique<WaylandWatcher>(wayland_server_.get());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment