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

Side by Side Diff: chrome/browser/policy/policy_loader_mac.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, 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/policy_loader_mac.h" 5 #include "chrome/browser/policy/policy_loader_mac.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/mac/foundation_util.h" 11 #include "base/mac/foundation_util.h"
12 #include "base/mac/scoped_cftyperef.h" 12 #include "base/mac/scoped_cftyperef.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/platform_file.h" 14 #include "base/platform_file.h"
15 #include "base/sequenced_task_runner.h" 15 #include "base/sequenced_task_runner.h"
16 #include "base/strings/sys_string_conversions.h" 16 #include "base/strings/sys_string_conversions.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "chrome/browser/policy/external_data_fetcher.h"
19 #include "chrome/browser/policy/policy_bundle.h" 18 #include "chrome/browser/policy/policy_bundle.h"
20 #include "chrome/browser/policy/policy_load_status.h" 19 #include "chrome/browser/policy/policy_load_status.h"
21 #include "chrome/browser/policy/policy_map.h"
22 #include "chrome/browser/policy/preferences_mac.h" 20 #include "chrome/browser/policy/preferences_mac.h"
23 #include "chrome/browser/policy/schema_map.h" 21 #include "chrome/browser/policy/schema_map.h"
22 #include "components/policy/core/common/external_data_fetcher.h"
23 #include "components/policy/core/common/policy_map.h"
24 #include "components/policy/core/common/schema.h" 24 #include "components/policy/core/common/schema.h"
25 25
26 using base::mac::CFCast; 26 using base::mac::CFCast;
27 using base::ScopedCFTypeRef; 27 using base::ScopedCFTypeRef;
28 28
29 namespace policy { 29 namespace policy {
30 30
31 namespace { 31 namespace {
32 32
33 // Callback function for CFDictionaryApplyFunction. |key| and |value| are an 33 // Callback function for CFDictionaryApplyFunction. |key| and |value| are an
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 } 225 }
226 } 226 }
227 } 227 }
228 228
229 void PolicyLoaderMac::OnFileUpdated(const base::FilePath& path, bool error) { 229 void PolicyLoaderMac::OnFileUpdated(const base::FilePath& path, bool error) {
230 if (!error) 230 if (!error)
231 Reload(false); 231 Reload(false);
232 } 232 }
233 233
234 } // namespace policy 234 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698