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

Side by Side Diff: chrome/browser/policy/cloud/component_cloud_policy_store.cc

Issue 78763002: Move PolicyMap and its dependencies to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export nested struct Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/policy/cloud/component_cloud_policy_store.h" 5 #include "chrome/browser/policy/cloud/component_cloud_policy_store.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/sha1.h" 10 #include "base/sha1.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" 13 #include "chrome/browser/policy/cloud/cloud_policy_constants.h"
14 #include "chrome/browser/policy/cloud/cloud_policy_validator.h" 14 #include "chrome/browser/policy/cloud/cloud_policy_validator.h"
15 #include "chrome/browser/policy/external_data_fetcher.h"
16 #include "chrome/browser/policy/policy_map.h"
17 #include "chrome/browser/policy/proto/cloud/chrome_extension_policy.pb.h" 15 #include "chrome/browser/policy/proto/cloud/chrome_extension_policy.pb.h"
18 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" 16 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h"
17 #include "components/policy/core/common/external_data_fetcher.h"
18 #include "components/policy/core/common/policy_map.h"
19 #include "url/gurl.h" 19 #include "url/gurl.h"
20 20
21 namespace em = enterprise_management; 21 namespace em = enterprise_management;
22 22
23 namespace policy { 23 namespace policy {
24 24
25 namespace { 25 namespace {
26 26
27 const char kValue[] = "Value"; 27 const char kValue[] = "Value";
28 const char kLevel[] = "Level"; 28 const char kLevel[] = "Level";
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 // If policy for components is ever used for device-level settings then 352 // If policy for components is ever used for device-level settings then
353 // this must support a configurable scope; assuming POLICY_SCOPE_USER is 353 // this must support a configurable scope; assuming POLICY_SCOPE_USER is
354 // fine for now. 354 // fine for now.
355 policy->Set(it.key(), level, POLICY_SCOPE_USER, value.release(), NULL); 355 policy->Set(it.key(), level, POLICY_SCOPE_USER, value.release(), NULL);
356 } 356 }
357 357
358 return true; 358 return true;
359 } 359 }
360 360
361 } // namespace policy 361 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698