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

Unified Diff: chrome/browser/ui/webui/policy_ui.cc

Issue 10805057: Modified PolicyService to register observers by domain only, instead of domain and component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nit Created 8 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 | « chrome/browser/policy/policy_service_stub.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/policy_ui.cc
diff --git a/chrome/browser/ui/webui/policy_ui.cc b/chrome/browser/ui/webui/policy_ui.cc
index 3af9974254a4151688523b49467677a1c2c9f84a..9eebb593fd215722b814ae17401c6b41e2bf69fc 100644
--- a/chrome/browser/ui/webui/policy_ui.cc
+++ b/chrome/browser/ui/webui/policy_ui.cc
@@ -171,13 +171,11 @@ PolicyUIHandler::PolicyUIHandler()
: ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) {}
PolicyUIHandler::~PolicyUIHandler() {
- GetPolicyService()->RemoveObserver(
- policy::POLICY_DOMAIN_CHROME, "", this);
+ GetPolicyService()->RemoveObserver(policy::POLICY_DOMAIN_CHROME, this);
}
void PolicyUIHandler::RegisterMessages() {
- GetPolicyService()->AddObserver(
- policy::POLICY_DOMAIN_CHROME, "", this);
+ GetPolicyService()->AddObserver(policy::POLICY_DOMAIN_CHROME, this);
web_ui()->RegisterMessageCallback(
"requestData",
base::Bind(&PolicyUIHandler::HandleRequestData,
« no previous file with comments | « chrome/browser/policy/policy_service_stub.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698