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

Unified Diff: components/arc/obb_mounter/arc_obb_mounter_bridge.cc

Issue 2133503002: arc: Revamp the ArcBridgeService interface (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: More rebasing 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
« no previous file with comments | « components/arc/obb_mounter/arc_obb_mounter_bridge.h ('k') | components/arc/power/arc_power_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/obb_mounter/arc_obb_mounter_bridge.cc
diff --git a/components/arc/obb_mounter/arc_obb_mounter_bridge.cc b/components/arc/obb_mounter/arc_obb_mounter_bridge.cc
index b9f3356e846349489ce5613c30780a597cdf788f..04362b7cbf94d21bf0c3e86607150d0b7b05220a 100644
--- a/components/arc/obb_mounter/arc_obb_mounter_bridge.cc
+++ b/components/arc/obb_mounter/arc_obb_mounter_bridge.cc
@@ -22,18 +22,17 @@ void RunObbCallback(const base::Callback<void(bool)>& callback,
} // namespace
ArcObbMounterBridge::ArcObbMounterBridge(ArcBridgeService* bridge_service)
- : ArcService(bridge_service),
- binding_(this) {
- arc_bridge_service()->AddObserver(this);
+ : ArcService(bridge_service), binding_(this) {
+ arc_bridge_service()->obb_mounter()->AddObserver(this);
}
ArcObbMounterBridge::~ArcObbMounterBridge() {
- arc_bridge_service()->RemoveObserver(this);
+ arc_bridge_service()->obb_mounter()->RemoveObserver(this);
}
-void ArcObbMounterBridge::OnObbMounterInstanceReady() {
+void ArcObbMounterBridge::OnInstanceReady() {
mojom::ObbMounterInstance* obb_mounter_instance =
- arc_bridge_service()->obb_mounter_instance();
+ arc_bridge_service()->obb_mounter()->instance();
obb_mounter_instance->Init(binding_.CreateInterfacePtrAndBind());
}
« no previous file with comments | « components/arc/obb_mounter/arc_obb_mounter_bridge.h ('k') | components/arc/power/arc_power_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698