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

Side by Side Diff: chrome/browser/extensions/test_extension_prefs.cc

Issue 1305213009: Componentize PrefSyncableService and support classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable
Patch Set: Add missing dependency on //sync:test_support_sync_api for unit tests with gn Created 5 years, 3 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
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/extensions/test_extension_prefs.h" 5 #include "chrome/browser/extensions/test_extension_prefs.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/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/prefs/json_pref_store.h" 12 #include "base/prefs/json_pref_store.h"
13 #include "base/prefs/pref_value_store.h" 13 #include "base/prefs/pref_value_store.h"
14 #include "base/run_loop.h" 14 #include "base/run_loop.h"
15 #include "base/sequenced_task_runner.h" 15 #include "base/sequenced_task_runner.h"
16 #include "base/synchronization/waitable_event.h" 16 #include "base/synchronization/waitable_event.h"
17 #include "base/thread_task_runner_handle.h" 17 #include "base/thread_task_runner_handle.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "chrome/browser/extensions/chrome_app_sorting.h" 19 #include "chrome/browser/extensions/chrome_app_sorting.h"
20 #include "chrome/browser/extensions/test_extension_system.h" 20 #include "chrome/browser/extensions/test_extension_system.h"
21 #include "chrome/browser/prefs/pref_service_mock_factory.h"
22 #include "chrome/browser/prefs/pref_service_syncable.h"
23 #include "chrome/browser/prefs/pref_service_syncable_util.h" 21 #include "chrome/browser/prefs/pref_service_syncable_util.h"
24 #include "chrome/common/chrome_constants.h" 22 #include "chrome/common/chrome_constants.h"
25 #include "components/crx_file/id_util.h" 23 #include "components/crx_file/id_util.h"
26 #include "components/pref_registry/pref_registry_syncable.h" 24 #include "components/pref_registry/pref_registry_syncable.h"
25 #include "components/syncable_prefs/pref_service_mock_factory.h"
26 #include "components/syncable_prefs/pref_service_syncable.h"
27 #include "content/public/browser/browser_thread.h" 27 #include "content/public/browser/browser_thread.h"
28 #include "extensions/browser/extension_pref_store.h" 28 #include "extensions/browser/extension_pref_store.h"
29 #include "extensions/browser/extension_pref_value_map.h" 29 #include "extensions/browser/extension_pref_value_map.h"
30 #include "extensions/browser/extension_prefs.h" 30 #include "extensions/browser/extension_prefs.h"
31 #include "extensions/browser/extension_prefs_factory.h" 31 #include "extensions/browser/extension_prefs_factory.h"
32 #include "extensions/browser/extension_system.h" 32 #include "extensions/browser/extension_system.h"
33 #include "extensions/browser/extensions_browser_client.h" 33 #include "extensions/browser/extensions_browser_client.h"
34 #include "extensions/common/extension.h" 34 #include "extensions/common/extension.h"
35 #include "extensions/common/manifest_constants.h" 35 #include "extensions/common/manifest_constants.h"
36 #include "sync/api/string_ordinal.h" 36 #include "sync/api/string_ordinal.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 void TestExtensionPrefs::set_extensions_disabled(bool extensions_disabled) { 206 void TestExtensionPrefs::set_extensions_disabled(bool extensions_disabled) {
207 extensions_disabled_ = extensions_disabled; 207 extensions_disabled_ = extensions_disabled;
208 } 208 }
209 209
210 ChromeAppSorting* TestExtensionPrefs::app_sorting() { 210 ChromeAppSorting* TestExtensionPrefs::app_sorting() {
211 return static_cast<ChromeAppSorting*>( 211 return static_cast<ChromeAppSorting*>(
212 ExtensionSystem::Get(&profile_)->app_sorting()); 212 ExtensionSystem::Get(&profile_)->app_sorting());
213 } 213 }
214 214
215 } // namespace extensions 215 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/menu_manager_unittest.cc ('k') | chrome/browser/extensions/updater/extension_updater_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698