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

Unified Diff: chrome/browser/configuration_policy_provider.cc

Issue 2858060: Changing policy while Chrome is running should refresh preferences without relaunching (Closed)
Patch Set: changed name of mock Created 10 years, 4 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/configuration_policy_provider.h ('k') | chrome/browser/configuration_policy_provider_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/configuration_policy_provider.cc
diff --git a/chrome/browser/configuration_policy_provider.cc b/chrome/browser/configuration_policy_provider.cc
index 31930a0a4263350ee20d70140d9a0673d634fbaa..3f1f43626138731aa08675816df4bb284471ecb5 100644
--- a/chrome/browser/configuration_policy_provider.cc
+++ b/chrome/browser/configuration_policy_provider.cc
@@ -6,6 +6,7 @@
#include "base/values.h"
#include "chrome/common/policy_constants.h"
+#include "chrome/common/notification_service.h"
namespace {
@@ -70,3 +71,11 @@ const ConfigurationPolicyProvider::PolicyValueMap*
}
return mapping;
}
+
+void ConfigurationPolicyProvider::NotifyStoreOfPolicyChange() {
+ NotificationService::current()->Notify(
+ NotificationType::POLICY_CHANGED,
+ Source<ConfigurationPolicyProvider>(this),
+ NotificationService::NoDetails());
+}
+
« no previous file with comments | « chrome/browser/configuration_policy_provider.h ('k') | chrome/browser/configuration_policy_provider_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698