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

Side by Side Diff: chrome/browser/profiles/off_the_record_profile_impl.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/profiles/off_the_record_profile_impl.h" 5 #include "chrome/browser/profiles/off_the_record_profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/download/download_service.h" 21 #include "chrome/browser/download/download_service.h"
22 #include "chrome/browser/download/download_service_factory.h" 22 #include "chrome/browser/download/download_service_factory.h"
23 #include "chrome/browser/io_thread.h" 23 #include "chrome/browser/io_thread.h"
24 #include "chrome/browser/net/chrome_url_request_context_getter.h" 24 #include "chrome/browser/net/chrome_url_request_context_getter.h"
25 #include "chrome/browser/net/proxy_service_factory.h" 25 #include "chrome/browser/net/proxy_service_factory.h"
26 #include "chrome/browser/permissions/permission_manager.h" 26 #include "chrome/browser/permissions/permission_manager.h"
27 #include "chrome/browser/permissions/permission_manager_factory.h" 27 #include "chrome/browser/permissions/permission_manager_factory.h"
28 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" 28 #include "chrome/browser/plugins/chrome_plugin_service_filter.h"
29 #include "chrome/browser/plugins/plugin_prefs.h" 29 #include "chrome/browser/plugins/plugin_prefs.h"
30 #include "chrome/browser/prefs/incognito_mode_prefs.h" 30 #include "chrome/browser/prefs/incognito_mode_prefs.h"
31 #include "chrome/browser/prefs/pref_service_syncable.h"
32 #include "chrome/browser/prefs/pref_service_syncable_util.h" 31 #include "chrome/browser/prefs/pref_service_syncable_util.h"
33 #include "chrome/browser/profiles/profile_manager.h" 32 #include "chrome/browser/profiles/profile_manager.h"
34 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h" 33 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h"
35 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate_factory.h" 34 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate_factory.h"
36 #include "chrome/browser/themes/theme_service.h" 35 #include "chrome/browser/themes/theme_service.h"
37 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" 36 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h"
38 #include "chrome/browser/ui/zoom/chrome_zoom_level_otr_delegate.h" 37 #include "chrome/browser/ui/zoom/chrome_zoom_level_otr_delegate.h"
39 #include "chrome/common/chrome_constants.h" 38 #include "chrome/common/chrome_constants.h"
40 #include "chrome/common/chrome_paths.h" 39 #include "chrome/common/chrome_paths.h"
41 #include "chrome/common/chrome_switches.h" 40 #include "chrome/common/chrome_switches.h"
42 #include "components/content_settings/core/browser/host_content_settings_map.h" 41 #include "components/content_settings/core/browser/host_content_settings_map.h"
43 #include "components/keyed_service/content/browser_context_dependency_manager.h" 42 #include "components/keyed_service/content/browser_context_dependency_manager.h"
44 #include "components/proxy_config/pref_proxy_config_tracker.h" 43 #include "components/proxy_config/pref_proxy_config_tracker.h"
44 #include "components/syncable_prefs/pref_service_syncable.h"
45 #include "components/ui/zoom/zoom_event_manager.h" 45 #include "components/ui/zoom/zoom_event_manager.h"
46 #include "components/user_prefs/user_prefs.h" 46 #include "components/user_prefs/user_prefs.h"
47 #include "content/public/browser/browser_thread.h" 47 #include "content/public/browser/browser_thread.h"
48 #include "content/public/browser/host_zoom_map.h" 48 #include "content/public/browser/host_zoom_map.h"
49 #include "content/public/browser/render_process_host.h" 49 #include "content/public/browser/render_process_host.h"
50 #include "content/public/browser/storage_partition.h" 50 #include "content/public/browser/storage_partition.h"
51 #include "content/public/browser/url_data_source.h" 51 #include "content/public/browser/url_data_source.h"
52 #include "content/public/browser/web_contents.h" 52 #include "content/public/browser/web_contents.h"
53 #include "net/http/http_server_properties.h" 53 #include "net/http/http_server_properties.h"
54 #include "net/http/transport_security_state.h" 54 #include "net/http/transport_security_state.h"
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { 564 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() {
565 #if defined(OS_CHROMEOS) 565 #if defined(OS_CHROMEOS)
566 if (chromeos::ProfileHelper::IsSigninProfile(this)) { 566 if (chromeos::ProfileHelper::IsSigninProfile(this)) {
567 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( 567 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
568 g_browser_process->local_state()); 568 g_browser_process->local_state());
569 } 569 }
570 #endif // defined(OS_CHROMEOS) 570 #endif // defined(OS_CHROMEOS)
571 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( 571 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile(
572 GetPrefs(), g_browser_process->local_state()); 572 GetPrefs(), g_browser_process->local_state());
573 } 573 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/gaia_info_update_service_unittest.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698