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; |
} |