OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/profile.h" | 5 #include "chrome/browser/profiles/profile.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "chrome/browser/extensions/extension_service.h" | 25 #include "chrome/browser/extensions/extension_service.h" |
26 #include "chrome/browser/extensions/extension_special_storage_policy.h" | 26 #include "chrome/browser/extensions/extension_special_storage_policy.h" |
27 #include "chrome/browser/extensions/extension_webrequest_api.h" | 27 #include "chrome/browser/extensions/extension_webrequest_api.h" |
28 #include "chrome/browser/net/pref_proxy_config_service.h" | 28 #include "chrome/browser/net/pref_proxy_config_service.h" |
29 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 29 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
30 #include "chrome/browser/prefs/pref_service.h" | 30 #include "chrome/browser/prefs/pref_service.h" |
31 #include "chrome/browser/profiles/off_the_record_profile_io_data.h" | 31 #include "chrome/browser/profiles/off_the_record_profile_io_data.h" |
32 #include "chrome/browser/profiles/profile_dependency_manager.h" | 32 #include "chrome/browser/profiles/profile_dependency_manager.h" |
33 #include "chrome/browser/sync/profile_sync_service.h" | 33 #include "chrome/browser/sync/profile_sync_service.h" |
34 #include "chrome/browser/themes/theme_service.h" | 34 #include "chrome/browser/themes/theme_service.h" |
35 #include "chrome/browser/transport_security_persister.h" | |
36 #include "chrome/browser/ui/browser_list.h" | 35 #include "chrome/browser/ui/browser_list.h" |
37 #include "chrome/browser/ui/find_bar/find_bar_state.h" | 36 #include "chrome/browser/ui/find_bar/find_bar_state.h" |
38 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 37 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
39 #include "chrome/browser/ui/webui/extension_icon_source.h" | 38 #include "chrome/browser/ui/webui/extension_icon_source.h" |
40 #include "chrome/common/chrome_constants.h" | 39 #include "chrome/common/chrome_constants.h" |
41 #include "chrome/common/chrome_notification_types.h" | 40 #include "chrome/common/chrome_notification_types.h" |
42 #include "chrome/common/chrome_paths.h" | 41 #include "chrome/common/chrome_paths.h" |
43 #include "chrome/common/chrome_switches.h" | 42 #include "chrome/common/chrome_switches.h" |
44 #include "chrome/common/extensions/extension.h" | 43 #include "chrome/common/extensions/extension.h" |
45 #include "chrome/common/json_pref_store.h" | 44 #include "chrome/common/json_pref_store.h" |
46 #include "chrome/common/pref_names.h" | 45 #include "chrome/common/pref_names.h" |
47 #include "chrome/common/render_messages.h" | 46 #include "chrome/common/render_messages.h" |
48 #include "content/browser/appcache/chrome_appcache_service.h" | 47 #include "content/browser/appcache/chrome_appcache_service.h" |
49 #include "content/browser/browser_thread.h" | 48 #include "content/browser/browser_thread.h" |
50 #include "content/browser/chrome_blob_storage_context.h" | 49 #include "content/browser/chrome_blob_storage_context.h" |
51 #include "content/browser/download/download_manager.h" | 50 #include "content/browser/download/download_manager.h" |
52 #include "content/browser/file_system/browser_file_system_helper.h" | 51 #include "content/browser/file_system/browser_file_system_helper.h" |
53 #include "content/browser/host_zoom_map.h" | 52 #include "content/browser/host_zoom_map.h" |
54 #include "content/browser/in_process_webkit/webkit_context.h" | 53 #include "content/browser/in_process_webkit/webkit_context.h" |
55 #include "content/browser/ssl/ssl_host_state.h" | 54 #include "content/browser/ssl/ssl_host_state.h" |
56 #include "content/browser/tab_contents/tab_contents.h" | 55 #include "content/browser/tab_contents/tab_contents.h" |
57 #include "content/browser/webui/web_ui.h" | 56 #include "content/browser/webui/web_ui.h" |
58 #include "content/common/notification_service.h" | 57 #include "content/common/notification_service.h" |
59 #include "grit/locale_settings.h" | 58 #include "grit/locale_settings.h" |
60 #include "net/base/transport_security_state.h" | |
61 #include "ui/base/resource/resource_bundle.h" | 59 #include "ui/base/resource/resource_bundle.h" |
62 #include "webkit/database/database_tracker.h" | 60 #include "webkit/database/database_tracker.h" |
63 #include "webkit/quota/quota_manager.h" | 61 #include "webkit/quota/quota_manager.h" |
64 | 62 |
65 #if defined(TOOLKIT_USES_GTK) | 63 #if defined(TOOLKIT_USES_GTK) |
66 #include "chrome/browser/ui/gtk/gtk_theme_service.h" | 64 #include "chrome/browser/ui/gtk/gtk_theme_service.h" |
67 #endif | 65 #endif |
68 | 66 |
69 #if defined(OS_CHROMEOS) | 67 #if defined(OS_CHROMEOS) |
70 #include "chrome/browser/chromeos/preferences.h" | 68 #include "chrome/browser/chromeos/preferences.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 return is_guest_session; | 211 return is_guest_session; |
214 #else | 212 #else |
215 return false; | 213 return false; |
216 #endif | 214 #endif |
217 } | 215 } |
218 | 216 |
219 bool Profile::IsSyncAccessible() { | 217 bool Profile::IsSyncAccessible() { |
220 ProfileSyncService* syncService = GetProfileSyncService(); | 218 ProfileSyncService* syncService = GetProfileSyncService(); |
221 return syncService && !syncService->IsManaged(); | 219 return syncService && !syncService->IsManaged(); |
222 } | 220 } |
OLD | NEW |