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

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

Issue 8258018: Generate Chrome policy definition list from policy_templates.json. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the unittest fix Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_provider.h" 5 #include "chrome/browser/policy/config_dir_policy_provider.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 if (file_util::GetFileInfo(config_file, &file_info) && 73 if (file_util::GetFileInfo(config_file, &file_info) &&
74 !file_info.is_directory) { 74 !file_info.is_directory) {
75 last_modification = std::max(last_modification, file_info.last_modified); 75 last_modification = std::max(last_modification, file_info.last_modified);
76 } 76 }
77 } 77 }
78 78
79 return last_modification; 79 return last_modification;
80 } 80 }
81 81
82 ConfigDirPolicyProvider::ConfigDirPolicyProvider( 82 ConfigDirPolicyProvider::ConfigDirPolicyProvider(
83 const ConfigurationPolicyProvider::PolicyDefinitionList* policy_list, 83 const PolicyDefinitionList* policy_list,
84 const FilePath& config_dir) 84 const FilePath& config_dir)
85 : FileBasedPolicyProvider( 85 : FileBasedPolicyProvider(
86 policy_list, 86 policy_list,
87 new ConfigDirPolicyProviderDelegate(config_dir)) { 87 new ConfigDirPolicyProviderDelegate(config_dir)) {
88 } 88 }
89 89
90 } // namespace policy 90 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/config_dir_policy_provider.h ('k') | chrome/browser/policy/config_dir_policy_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698