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

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

Issue 16254003: WIP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 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/json/json_file_value_serializer.h" 14 #include "base/json/json_file_value_serializer.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/platform_file.h" 16 #include "base/platform_file.h"
17 #include "base/stl_util.h" 17 #include "base/stl_util.h"
18 #include "chrome/browser/policy/policy_bundle.h" 18 #include "chrome/browser/policy/policy_bundle.h"
19 #include "chrome/browser/policy/policy_namespace.h"
19 20
20 namespace policy { 21 namespace policy {
21 22
22 namespace { 23 namespace {
23 24
24 // Subdirectories that contain the mandatory and recommended policies. 25 // Subdirectories that contain the mandatory and recommended policies.
25 const base::FilePath::CharType kMandatoryConfigDir[] = 26 const base::FilePath::CharType kMandatoryConfigDir[] =
26 FILE_PATH_LITERAL("managed"); 27 FILE_PATH_LITERAL("managed");
27 const base::FilePath::CharType kRecommendedConfigDir[] = 28 const base::FilePath::CharType kRecommendedConfigDir[] =
28 FILE_PATH_LITERAL("recommended"); 29 FILE_PATH_LITERAL("recommended");
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 } 189 }
189 } 190 }
190 191
191 void ConfigDirPolicyLoader::OnFileUpdated(const base::FilePath& path, 192 void ConfigDirPolicyLoader::OnFileUpdated(const base::FilePath& path,
192 bool error) { 193 bool error) {
193 if (!error) 194 if (!error)
194 Reload(false); 195 Reload(false);
195 } 196 }
196 197
197 } // namespace policy 198 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud_policy_manager_unittest.cc ('k') | chrome/browser/policy/config_dir_policy_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698