shill: Add emits for proxy and profile properties.
Added emits for the properties:
- Service.ProxyConfig
- Service.Profile
- Manager.Profiles
These are required by Chrome to update Policies and Proxies correctly.
BUG=chromium:157642
TEST=None, adapted manager unit test to ignore emits.
Change-Id: Icba2b43804d1d69e3b93ef0b2f30606c8d6f9753
Reviewed-on: https://gerrit.chromium.org/gerrit/37935
Tested-by: Philipp Neubeck <pneubeck@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Reviewed-by: Darin Petkov <petkov@chromium.org>
Commit-Ready: Philipp Neubeck <pneubeck@chromium.org>
diff --git a/profile.cc b/profile.cc
index 95b8956..f9c568b 100644
--- a/profile.cc
+++ b/profile.cc
@@ -150,13 +150,13 @@
if (service->profile() == this) {
return false;
}
- service->set_profile(this);
+ service->SetProfile(this);
return service->Save(storage_.get()) && storage_->Flush();
}
bool Profile::AbandonService(const ServiceRefPtr &service) {
if (service->profile() == this)
- service->set_profile(NULL);
+ service->SetProfile(NULL);
return storage_->DeleteGroup(service->GetStorageIdentifier()) &&
storage_->Flush();
}
@@ -168,7 +168,7 @@
bool Profile::ConfigureService(const ServiceRefPtr &service) {
if (!ContainsService(service))
return false;
- service->set_profile(this);
+ service->SetProfile(this);
return service->Load(storage_.get());
}