| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/prefs/json_pref_store.h" | |
| 15 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
| 17 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 18 #include "chrome/browser/background/background_contents_service_factory.h" | 17 #include "chrome/browser/background/background_contents_service_factory.h" |
| 19 #include "chrome/browser/background_sync/background_sync_controller_factory.h" | 18 #include "chrome/browser/background_sync/background_sync_controller_factory.h" |
| 20 #include "chrome/browser/background_sync/background_sync_controller_impl.h" | 19 #include "chrome/browser/background_sync/background_sync_controller_impl.h" |
| 21 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
| 22 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 21 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
| 23 #include "chrome/browser/dom_distiller/profile_utils.h" | 22 #include "chrome/browser/dom_distiller/profile_utils.h" |
| 24 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 23 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 37 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h" | 36 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h" |
| 38 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate_factory.h" | 37 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate_factory.h" |
| 39 #include "chrome/browser/themes/theme_service.h" | 38 #include "chrome/browser/themes/theme_service.h" |
| 40 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 39 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
| 41 #include "chrome/browser/ui/zoom/chrome_zoom_level_otr_delegate.h" | 40 #include "chrome/browser/ui/zoom/chrome_zoom_level_otr_delegate.h" |
| 42 #include "chrome/common/chrome_constants.h" | 41 #include "chrome/common/chrome_constants.h" |
| 43 #include "chrome/common/chrome_paths.h" | 42 #include "chrome/common/chrome_paths.h" |
| 44 #include "chrome/common/chrome_switches.h" | 43 #include "chrome/common/chrome_switches.h" |
| 45 #include "components/content_settings/core/browser/host_content_settings_map.h" | 44 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 46 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 45 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 46 #include "components/prefs/json_pref_store.h" |
| 47 #include "components/proxy_config/pref_proxy_config_tracker.h" | 47 #include "components/proxy_config/pref_proxy_config_tracker.h" |
| 48 #include "components/syncable_prefs/pref_service_syncable.h" | 48 #include "components/syncable_prefs/pref_service_syncable.h" |
| 49 #include "components/ui/zoom/zoom_event_manager.h" | 49 #include "components/ui/zoom/zoom_event_manager.h" |
| 50 #include "components/user_prefs/user_prefs.h" | 50 #include "components/user_prefs/user_prefs.h" |
| 51 #include "content/public/browser/browser_thread.h" | 51 #include "content/public/browser/browser_thread.h" |
| 52 #include "content/public/browser/host_zoom_map.h" | 52 #include "content/public/browser/host_zoom_map.h" |
| 53 #include "content/public/browser/render_process_host.h" | 53 #include "content/public/browser/render_process_host.h" |
| 54 #include "content/public/browser/storage_partition.h" | 54 #include "content/public/browser/storage_partition.h" |
| 55 #include "content/public/browser/url_data_source.h" | 55 #include "content/public/browser/url_data_source.h" |
| 56 #include "content/public/browser/web_contents.h" | 56 #include "content/public/browser/web_contents.h" |
| 57 #include "net/http/http_server_properties.h" | 57 #include "net/http/http_server_properties.h" |
| 58 #include "net/http/transport_security_state.h" | 58 #include "net/http/transport_security_state.h" |
| 59 #include "storage/browser/database/database_tracker.h" | 59 #include "storage/browser/database/database_tracker.h" |
| 60 | 60 |
| 61 #if defined(OS_ANDROID) | 61 #if defined(OS_ANDROID) |
| 62 #include "chrome/browser/media/protected_media_identifier_permission_context.h" | 62 #include "chrome/browser/media/protected_media_identifier_permission_context.h" |
| 63 #include "chrome/browser/media/protected_media_identifier_permission_context_fac
tory.h" | 63 #include "chrome/browser/media/protected_media_identifier_permission_context_fac
tory.h" |
| 64 #endif // defined(OS_ANDROID) | 64 #endif // defined(OS_ANDROID) |
| 65 | 65 |
| 66 #if defined(OS_ANDROID) || defined(OS_IOS) | 66 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 67 #include "base/prefs/scoped_user_pref_update.h" | 67 #include "components/prefs/scoped_user_pref_update.h" |
| 68 #include "components/proxy_config/proxy_prefs.h" | 68 #include "components/proxy_config/proxy_prefs.h" |
| 69 #endif // defined(OS_ANDROID) || defined(OS_IOS) | 69 #endif // defined(OS_ANDROID) || defined(OS_IOS) |
| 70 | 70 |
| 71 #if defined(OS_CHROMEOS) | 71 #if defined(OS_CHROMEOS) |
| 72 #include "chrome/browser/chromeos/preferences.h" | 72 #include "chrome/browser/chromeos/preferences.h" |
| 73 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 73 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 74 #endif | 74 #endif |
| 75 | 75 |
| 76 #if defined(ENABLE_CONFIGURATION_POLICY) && !defined(OS_CHROMEOS) | 76 #if defined(ENABLE_CONFIGURATION_POLICY) && !defined(OS_CHROMEOS) |
| 77 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" | 77 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { | 566 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { |
| 567 #if defined(OS_CHROMEOS) | 567 #if defined(OS_CHROMEOS) |
| 568 if (chromeos::ProfileHelper::IsSigninProfile(this)) { | 568 if (chromeos::ProfileHelper::IsSigninProfile(this)) { |
| 569 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( | 569 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( |
| 570 g_browser_process->local_state()); | 570 g_browser_process->local_state()); |
| 571 } | 571 } |
| 572 #endif // defined(OS_CHROMEOS) | 572 #endif // defined(OS_CHROMEOS) |
| 573 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( | 573 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( |
| 574 GetPrefs(), g_browser_process->local_state()); | 574 GetPrefs(), g_browser_process->local_state()); |
| 575 } | 575 } |
| OLD | NEW |