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

Unified Diff: components/policy/core/common/async_policy_provider_unittest.cc

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: Created 5 years, 3 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/async_policy_provider_unittest.cc
diff --git a/components/policy/core/common/async_policy_provider_unittest.cc b/components/policy/core/common/async_policy_provider_unittest.cc
index 587d693c341fa546423e1d45efebbf57f731c953..dfc8e4c05aabab92509007d1d761f22b29b4a437 100644
--- a/components/policy/core/common/async_policy_provider_unittest.cc
+++ b/components/policy/core/common/async_policy_provider_unittest.cc
@@ -29,11 +29,12 @@ void SetPolicy(PolicyBundle* bundle,
const std::string& name,
const std::string& value) {
bundle->Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()))
- .Set(name,
- POLICY_LEVEL_MANDATORY,
- POLICY_SCOPE_USER,
- new base::StringValue(value),
- NULL);
+ .SetWithSource(name,
+ POLICY_LEVEL_MANDATORY,
+ POLICY_SCOPE_USER,
+ new base::StringValue(value),
+ NULL,
bartfab (slow) 2015/09/14 14:42:26 Nit: s/NULL/nullptr/
fhorschig 2015/09/16 13:52:04 Done.
+ POLICY_SOURCE_PLATFORM);
bartfab (slow) 2015/09/14 14:42:26 Nit: #include "components/policy/core/common/polic
fhorschig 2015/09/16 13:52:04 Done.
}
class MockPolicyLoader : public AsyncPolicyLoader {

Powered by Google App Engine
This is Rietveld 408576698