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

Unified Diff: components/arc/intent_helper/arc_intent_helper_bridge.cc

Issue 2133503002: arc: Revamp the ArcBridgeService interface (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: more rebase Created 4 years, 5 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/intent_helper/arc_intent_helper_bridge.cc
diff --git a/components/arc/intent_helper/arc_intent_helper_bridge.cc b/components/arc/intent_helper/arc_intent_helper_bridge.cc
index e4a2660b79d3f75046ca4fe8ce8c2332ba8f890e..a6e69e4dc0d190b9af5f50d65d2e8435441d2bad 100644
--- a/components/arc/intent_helper/arc_intent_helper_bridge.cc
+++ b/components/arc/intent_helper/arc_intent_helper_bridge.cc
@@ -39,22 +39,23 @@ ArcIntentHelperBridge::ArcIntentHelperBridge(
set_wallpaper_delegate_(std::move(set_wallpaper_delegate)),
activity_resolver_(activity_resolver) {
DCHECK(thread_checker_.CalledOnValidThread());
- arc_bridge_service()->AddObserver(this);
+ arc_bridge_service()->intent_helper()->AddObserver(this);
}
ArcIntentHelperBridge::~ArcIntentHelperBridge() {
DCHECK(thread_checker_.CalledOnValidThread());
- arc_bridge_service()->RemoveObserver(this);
+ arc_bridge_service()->intent_helper()->RemoveObserver(this);
}
-void ArcIntentHelperBridge::OnIntentHelperInstanceReady() {
+void ArcIntentHelperBridge::OnInstanceReady(
+ mojom::IntentHelperInstance* intent_helper_instance,
+ uint32_t version) {
DCHECK(thread_checker_.CalledOnValidThread());
ash::Shell::GetInstance()->set_link_handler_model_factory(this);
- arc_bridge_service()->intent_helper_instance()->Init(
- binding_.CreateInterfacePtrAndBind());
+ intent_helper_instance->Init(binding_.CreateInterfacePtrAndBind());
}
-void ArcIntentHelperBridge::OnIntentHelperInstanceClosed() {
+void ArcIntentHelperBridge::OnInstanceClosed(mojom::IntentHelperInstance*) {
DCHECK(thread_checker_.CalledOnValidThread());
ash::Shell::GetInstance()->set_link_handler_model_factory(nullptr);
}

Powered by Google App Engine
This is Rietveld 408576698