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/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" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/prefs/json_pref_store.h" | 13 #include "base/prefs/json_pref_store.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "chrome/browser/background/background_contents_service_factory.h" | 17 #include "chrome/browser/background/background_contents_service_factory.h" |
18 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
19 #include "chrome/browser/content_settings/host_content_settings_map.h" | 19 #include "chrome/browser/content_settings/host_content_settings_map.h" |
20 #include "chrome/browser/dom_distiller/profile_utils.h" | 20 #include "chrome/browser/dom_distiller/profile_utils.h" |
21 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 21 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
22 #include "chrome/browser/download/download_service.h" | 22 #include "chrome/browser/download/download_service.h" |
23 #include "chrome/browser/download/download_service_factory.h" | 23 #include "chrome/browser/download/download_service_factory.h" |
24 #include "chrome/browser/extensions/extension_service.h" | |
25 #include "chrome/browser/extensions/extension_special_storage_policy.h" | 24 #include "chrome/browser/extensions/extension_special_storage_policy.h" |
26 #include "chrome/browser/io_thread.h" | 25 #include "chrome/browser/io_thread.h" |
27 #include "chrome/browser/net/chrome_url_request_context_getter.h" | 26 #include "chrome/browser/net/chrome_url_request_context_getter.h" |
28 #include "chrome/browser/net/pref_proxy_config_tracker.h" | 27 #include "chrome/browser/net/pref_proxy_config_tracker.h" |
29 #include "chrome/browser/net/proxy_service_factory.h" | 28 #include "chrome/browser/net/proxy_service_factory.h" |
30 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" | 29 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
31 #include "chrome/browser/plugins/plugin_prefs.h" | 30 #include "chrome/browser/plugins/plugin_prefs.h" |
32 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 31 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
33 #include "chrome/browser/prefs/pref_service_syncable.h" | 32 #include "chrome/browser/prefs/pref_service_syncable.h" |
34 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h" | 33 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h" |
(...skipping 30 matching lines...) Expand all Loading... |
65 #if defined(OS_CHROMEOS) | 64 #if defined(OS_CHROMEOS) |
66 #include "chrome/browser/chromeos/preferences.h" | 65 #include "chrome/browser/chromeos/preferences.h" |
67 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 66 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
68 #endif | 67 #endif |
69 | 68 |
70 #if defined(ENABLE_CONFIGURATION_POLICY) && !defined(OS_CHROMEOS) | 69 #if defined(ENABLE_CONFIGURATION_POLICY) && !defined(OS_CHROMEOS) |
71 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" | 70 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
72 #endif | 71 #endif |
73 | 72 |
74 #if defined(ENABLE_EXTENSIONS) | 73 #if defined(ENABLE_EXTENSIONS) |
| 74 #include "chrome/browser/extensions/extension_service.h" |
75 #include "extensions/browser/api/web_request/web_request_api.h" | 75 #include "extensions/browser/api/web_request/web_request_api.h" |
76 #include "extensions/browser/extension_system.h" | 76 #include "extensions/browser/extension_system.h" |
77 #include "extensions/browser/guest_view/guest_view_manager.h" | 77 #include "extensions/browser/guest_view/guest_view_manager.h" |
78 #include "extensions/common/extension.h" | 78 #include "extensions/common/extension.h" |
79 #endif | 79 #endif |
80 | 80 |
81 using content::BrowserThread; | 81 using content::BrowserThread; |
82 using content::DownloadManagerDelegate; | 82 using content::DownloadManagerDelegate; |
83 using content::HostZoomMap; | 83 using content::HostZoomMap; |
84 | 84 |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { | 541 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { |
542 #if defined(OS_CHROMEOS) | 542 #if defined(OS_CHROMEOS) |
543 if (chromeos::ProfileHelper::IsSigninProfile(this)) { | 543 if (chromeos::ProfileHelper::IsSigninProfile(this)) { |
544 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( | 544 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( |
545 g_browser_process->local_state()); | 545 g_browser_process->local_state()); |
546 } | 546 } |
547 #endif // defined(OS_CHROMEOS) | 547 #endif // defined(OS_CHROMEOS) |
548 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( | 548 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( |
549 GetPrefs(), g_browser_process->local_state()); | 549 GetPrefs(), g_browser_process->local_state()); |
550 } | 550 } |
OLD | NEW |