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

Unified Diff: components/policy/core/common/mock_configuration_policy_provider.h

Issue 1304843004: Add source column to chrome://policy showing the origins of policies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed browsertest and removed unnecessary string for default values. Created 5 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
Index: components/policy/core/common/mock_configuration_policy_provider.h
diff --git a/components/policy/core/common/mock_configuration_policy_provider.h b/components/policy/core/common/mock_configuration_policy_provider.h
index d891140d785b4e0262c2433c12d9f9a5747dda9f..19d19aa1ffb3bc779f180a7f3f29be090bb6a0f7 100644
--- a/components/policy/core/common/mock_configuration_policy_provider.h
+++ b/components/policy/core/common/mock_configuration_policy_provider.h
@@ -44,6 +44,10 @@ class MockConfigurationPolicyProvider : public ConfigurationPolicyProvider {
// just notifies the observers and serves the same policies.
void SetAutoRefresh();
+ // Defines source. Will return POLICY_SOURCE_DEFAULT that is never used by any
+ // other provider.
+ PolicySource source() const override;
Thiemo Nagel 2015/09/01 17:40:37 Remove.
fhorschig 2015/09/04 06:53:54 Done.
+
private:
void RefreshWithSamePolicies();

Powered by Google App Engine
This is Rietveld 408576698