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

Unified Diff: components/arc/arc_service_manager.cc

Issue 1477733002: Add ArcNotificationManager for new ARC notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync dependencies Created 4 years, 11 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 | « components/arc/arc_service_manager.h ('k') | ui/arc/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/arc_service_manager.cc
diff --git a/components/arc/arc_service_manager.cc b/components/arc/arc_service_manager.cc
index 3f56538533bb2b8e809829980002a5d6f17623c8..414673800a81cc378b92b29516329c07d79ca703 100644
--- a/components/arc/arc_service_manager.cc
+++ b/components/arc/arc_service_manager.cc
@@ -16,6 +16,7 @@
#include "components/arc/power/arc_power_bridge.h"
#include "components/arc/settings/arc_settings_bridge.h"
#include "components/arc/video/arc_video_bridge.h"
+#include "ui/arc/notification/arc_notification_manager.h"
namespace arc {
@@ -64,4 +65,12 @@ ArcBridgeService* ArcServiceManager::arc_bridge_service() {
return arc_bridge_service_.get();
}
+void ArcServiceManager::OnPrimaryUserProfilePrepared(
+ const AccountId& account_id) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+
+ arc_notification_manager_.reset(
+ new ArcNotificationManager(arc_bridge_service(), account_id));
+}
+
} // namespace arc
« no previous file with comments | « components/arc/arc_service_manager.h ('k') | ui/arc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698