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

Unified Diff: chrome/browser/chrome_browser_main_extra_parts_exo.cc

Issue 2066853002: arc: Show custom notification via notification surface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@notification-exo
Patch Set: add comment for use_custom_notification Created 4 years, 6 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/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 cdd2a698bc9276ae3e41a99fe93d33e996f12900..42532a713043c0bd9404ba912d9365f62509a8b5 100644
--- a/chrome/browser/chrome_browser_main_extra_parts_exo.cc
+++ b/chrome/browser/chrome_browser_main_extra_parts_exo.cc
@@ -18,6 +18,7 @@
#include "components/exo/display.h"
#include "components/exo/wayland/server.h"
#include "content/public/browser/browser_thread.h"
+#include "ui/arc/notification/arc_custom_notification_item.h"
#if defined(USE_GLIB)
namespace {
@@ -123,10 +124,15 @@ void ChromeBrowserMainExtraPartsExo::PreProfileInit() {
wayland_server_ = exo::wayland::Server::Create(display_.get());
wayland_watcher_ =
base::WrapUnique(new WaylandWatcher(wayland_server_.get()));
+
+ arc::ArcCustomNotificationItem::SetNotificationSurfaceRegistry(
+ display_->notification_surface_registry());
Nico 2016/06/21 18:00:29 Does this do any interesting work? This runs very
xiyuan 2016/06/21 18:03:57 Nope. It just passes down the registry pointer to
}
}
void ChromeBrowserMainExtraPartsExo::PostMainMessageLoopRun() {
+ arc::ArcCustomNotificationItem::SetNotificationSurfaceRegistry(nullptr);
+
wayland_watcher_.reset();
wayland_server_.reset();
}
« no previous file with comments | « no previous file | components/arc/common/notifications.mojom » ('j') | ui/arc/notification/arc_custom_notification_view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698