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

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: Moved to ui/arc and Addressed comments 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
Index: components/arc/arc_service_manager.cc
diff --git a/components/arc/arc_service_manager.cc b/components/arc/arc_service_manager.cc
index 0e18308aa106ba1c5455188d3aae6b61bb4c44fa..0906423fd71165dd7fb91508c5c1f41063342570 100644
--- a/components/arc/arc_service_manager.cc
+++ b/components/arc/arc_service_manager.cc
@@ -11,6 +11,7 @@
#include "components/arc/input/arc_input_bridge.h"
#include "components/arc/power/arc_power_bridge.h"
#include "components/arc/settings/arc_settings_bridge.h"
+#include "ui/arc/notification/arc_notification_manager.h"
namespace arc {
@@ -52,4 +53,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

Powered by Google App Engine
This is Rietveld 408576698