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

Unified Diff: components/arc/test/fake_policy_instance.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
Index: components/arc/test/fake_policy_instance.cc
diff --git a/components/arc/test/fake_policy_instance.cc b/components/arc/test/fake_policy_instance.cc
index 8111244c4b9922b2adcb787c4aa23c972f0c35fb..42fd121c07c5f2a1be8b451f2b77a4580177334c 100644
--- a/components/arc/test/fake_policy_instance.cc
+++ b/components/arc/test/fake_policy_instance.cc
@@ -11,11 +11,11 @@ FakePolicyInstance::FakePolicyInstance(
mojo::InterfaceRequest<mojom::PolicyInstance> request,
ArcBridgeService* bridge_service)
: binding_(this, std::move(request)), bridge_service_(bridge_service) {
- bridge_service_->AddObserver(this);
+ bridge_service_->policy()->AddObserver(this);
}
FakePolicyInstance::~FakePolicyInstance() {
- bridge_service_->RemoveObserver(this);
+ bridge_service_->policy()->RemoveObserver(this);
}
void FakePolicyInstance::OnPolicyUpdated() {}
@@ -24,7 +24,7 @@ void FakePolicyInstance::Init(mojom::PolicyHostPtr host_ptr) {
host_ptr_ = std::move(host_ptr);
}
-void FakePolicyInstance::OnPolicyInstanceReady() {
+void FakePolicyInstance::OnInstanceReady() {
ready_ = true;
}
« no previous file with comments | « components/arc/test/fake_policy_instance.h ('k') | components/arc/window_manager/arc_window_manager_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698