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

Side by Side Diff: chrome/browser/policy/config_dir_policy_loader.cc

Issue 78823004: Move PolicyBundle into components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase on master Created 7 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/config_dir_policy_loader.h" 5 #include "chrome/browser/policy/config_dir_policy_loader.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/file_util.h" 13 #include "base/file_util.h"
14 #include "base/files/file_enumerator.h" 14 #include "base/files/file_enumerator.h"
15 #include "base/json/json_file_value_serializer.h" 15 #include "base/json/json_file_value_serializer.h"
16 #include "base/json/json_reader.h" 16 #include "base/json/json_reader.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/platform_file.h" 18 #include "base/platform_file.h"
19 #include "base/stl_util.h" 19 #include "base/stl_util.h"
20 #include "chrome/browser/policy/policy_bundle.h"
21 #include "chrome/browser/policy/policy_load_status.h" 20 #include "chrome/browser/policy/policy_load_status.h"
21 #include "components/policy/core/common/policy_bundle.h"
22 22
23 namespace policy { 23 namespace policy {
24 24
25 namespace { 25 namespace {
26 26
27 // Subdirectories that contain the mandatory and recommended policies. 27 // Subdirectories that contain the mandatory and recommended policies.
28 const base::FilePath::CharType kMandatoryConfigDir[] = 28 const base::FilePath::CharType kMandatoryConfigDir[] =
29 FILE_PATH_LITERAL("managed"); 29 FILE_PATH_LITERAL("managed");
30 const base::FilePath::CharType kRecommendedConfigDir[] = 30 const base::FilePath::CharType kRecommendedConfigDir[] =
31 FILE_PATH_LITERAL("recommended"); 31 FILE_PATH_LITERAL("recommended");
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 } 223 }
224 } 224 }
225 225
226 void ConfigDirPolicyLoader::OnFileUpdated(const base::FilePath& path, 226 void ConfigDirPolicyLoader::OnFileUpdated(const base::FilePath& path,
227 bool error) { 227 bool error) {
228 if (!error) 228 if (!error)
229 Reload(false); 229 Reload(false);
230 } 230 }
231 231
232 } // namespace policy 232 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698