OLD | NEW |
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/extensions/external_pref_loader.h" | 5 #include "chrome/browser/extensions/external_pref_loader.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_enumerator.h" | 8 #include "base/files/file_enumerator.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/json/json_file_value_serializer.h" | 11 #include "base/json/json_file_value_serializer.h" |
12 #include "base/json/json_string_value_serializer.h" | 12 #include "base/json/json_string_value_serializer.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "chrome/browser/defaults.h" | 18 #include "chrome/browser/defaults.h" |
19 #include "chrome/browser/prefs/pref_service_syncable.h" | |
20 #include "chrome/browser/prefs/pref_service_syncable_util.h" | 19 #include "chrome/browser/prefs/pref_service_syncable_util.h" |
21 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
22 #include "chrome/browser/sync/profile_sync_service_factory.h" | 21 #include "chrome/browser/sync/profile_sync_service_factory.h" |
23 #include "chrome/common/chrome_paths.h" | 22 #include "chrome/common/chrome_paths.h" |
| 23 #include "components/syncable_prefs/pref_service_syncable.h" |
24 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
25 | 25 |
26 using content::BrowserThread; | 26 using content::BrowserThread; |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 base::FilePath::CharType kExternalExtensionJson[] = | 30 base::FilePath::CharType kExternalExtensionJson[] = |
31 FILE_PATH_LITERAL("external_extensions.json"); | 31 FILE_PATH_LITERAL("external_extensions.json"); |
32 | 32 |
33 std::set<base::FilePath> GetPrefsCandidateFilesFromFolder( | 33 std::set<base::FilePath> GetPrefsCandidateFilesFromFolder( |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 LoadFinished(); | 321 LoadFinished(); |
322 } | 322 } |
323 | 323 |
324 ExternalTestingLoader::~ExternalTestingLoader() {} | 324 ExternalTestingLoader::~ExternalTestingLoader() {} |
325 | 325 |
326 const base::FilePath ExternalTestingLoader::GetBaseCrxFilePath() { | 326 const base::FilePath ExternalTestingLoader::GetBaseCrxFilePath() { |
327 return fake_base_path_; | 327 return fake_base_path_; |
328 } | 328 } |
329 | 329 |
330 } // namespace extensions | 330 } // namespace extensions |
OLD | NEW |