Chromium Code Reviews| Index: chrome/browser/policy/cloud/cloud_policy_test_utils.cc |
| diff --git a/chrome/browser/policy/cloud/cloud_policy_test_utils.cc b/chrome/browser/policy/cloud/cloud_policy_test_utils.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2604139bcf732130e474ee60bcd3448122844210 |
| --- /dev/null |
| +++ b/chrome/browser/policy/cloud/cloud_policy_test_utils.cc |
| @@ -0,0 +1,22 @@ |
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "base/memory/ptr_util.h" |
| +#include "chrome/browser/policy/cloud/cloud_policy_test_utils.h" |
| +#include "components/policy/core/common/policy_map.h" |
| +#include "components/policy/policy_constants.h" |
| + |
| +namespace policy { |
| + |
| +void GetExpectedDefaultPolicy(PolicyMap* policy_map) { |
| + policy_map->Set(key::kNTPContentSuggestionsEnabled, POLICY_LEVEL_MANDATORY, |
|
emaxx
2016/11/29 16:21:15
nit: include "components/policy/core/common/policy
Andrew T Wilson (Slow)
2016/11/30 10:02:34
Done.
|
| + POLICY_SCOPE_USER, POLICY_SOURCE_ENTERPRISE_DEFAULT, |
| + base::WrapUnique(new base::FundamentalValue(false)), nullptr); |
|
emaxx
2016/11/29 16:21:15
nit: include "base/values.h"
Andrew T Wilson (Slow)
2016/11/30 10:02:34
Done.
|
| +#if defined(OS_CHROMEOS) |
| + SetEnterpriseUsersDefaults(policy_map); |
|
pmarko
2016/11/29 14:03:34
Two small questions:
- Is this not defeating the p
Andrew T Wilson (Slow)
2016/11/30 10:02:34
This was turning out to be a maintenance problem,
|
| +#endif |
| +} |
| + |
| + |
| +} // namespace policy |