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

Side by Side Diff: chrome/browser/policy/policy_loader_mac.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/policy_loader_mac.h" 5 #include "chrome/browser/policy/policy_loader_mac.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/mac/foundation_util.h" 12 #include "base/mac/foundation_util.h"
13 #include "base/mac/scoped_cftyperef.h" 13 #include "base/mac/scoped_cftyperef.h"
14 #include "base/path_service.h" 14 #include "base/path_service.h"
15 #include "base/platform_file.h" 15 #include "base/platform_file.h"
16 #include "base/sys_string_conversions.h" 16 #include "base/sys_string_conversions.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "chrome/browser/policy/policy_bundle.h" 18 #include "chrome/browser/policy/policy_bundle.h"
19 #include "chrome/browser/policy/policy_map.h" 19 #include "chrome/browser/policy/policy_map.h"
20 #include "chrome/browser/policy/policy_namespace.h"
20 #include "chrome/browser/policy/preferences_mac.h" 21 #include "chrome/browser/policy/preferences_mac.h"
21 #include "chrome/common/chrome_paths.h" 22 #include "chrome/common/chrome_paths.h"
22 #include "policy/policy_constants.h" 23 #include "policy/policy_constants.h"
23 24
24 using base::mac::CFCast; 25 using base::mac::CFCast;
25 using base::mac::ScopedCFTypeRef; 26 using base::mac::ScopedCFTypeRef;
26 27
27 namespace policy { 28 namespace policy {
28 29
29 namespace { 30 namespace {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 174
174 return NULL; 175 return NULL;
175 } 176 }
176 177
177 void PolicyLoaderMac::OnFileUpdated(const base::FilePath& path, bool error) { 178 void PolicyLoaderMac::OnFileUpdated(const base::FilePath& path, bool error) {
178 if (!error) 179 if (!error)
179 Reload(false); 180 Reload(false);
180 } 181 }
181 182
182 } // namespace policy 183 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_change_watcher.cc ('k') | chrome/browser/policy/policy_loader_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698