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

Unified Diff: ui/arc/notification/arc_notification_manager.cc

Issue 1635603002: Make use of CreateInterfacePtrAndBind() where appropriate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks 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 | « sql/mojo/vfs_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/arc/notification/arc_notification_manager.cc
diff --git a/ui/arc/notification/arc_notification_manager.cc b/ui/arc/notification/arc_notification_manager.cc
index a5692d54d3636226e9eed61c8c5c91c6972cb976..6390c8cf0b40a63c0f5faca334c0c0f9ac0d2e63 100644
--- a/ui/arc/notification/arc_notification_manager.cc
+++ b/ui/arc/notification/arc_notification_manager.cc
@@ -29,9 +29,7 @@ void ArcNotificationManager::OnNotificationsInstanceReady() {
return;
}
- NotificationsHostPtr host;
- binding_.Bind(mojo::GetProxy(&host));
- notifications_instance->Init(std::move(host));
+ notifications_instance->Init(binding_.CreateInterfacePtrAndBind());
}
void ArcNotificationManager::OnNotificationPosted(ArcNotificationDataPtr data) {
« no previous file with comments | « sql/mojo/vfs_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698