| 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/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 26 matching lines...) Expand all  Loading... | 
| 37 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 37 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 
| 38 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 38 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 
| 39 #include "chrome/common/chrome_constants.h" | 39 #include "chrome/common/chrome_constants.h" | 
| 40 #include "chrome/common/chrome_notification_types.h" | 40 #include "chrome/common/chrome_notification_types.h" | 
| 41 #include "chrome/common/chrome_paths.h" | 41 #include "chrome/common/chrome_paths.h" | 
| 42 #include "chrome/common/chrome_switches.h" | 42 #include "chrome/common/chrome_switches.h" | 
| 43 #include "chrome/common/extensions/extension.h" | 43 #include "chrome/common/extensions/extension.h" | 
| 44 #include "chrome/common/json_pref_store.h" | 44 #include "chrome/common/json_pref_store.h" | 
| 45 #include "chrome/common/pref_names.h" | 45 #include "chrome/common/pref_names.h" | 
| 46 #include "chrome/common/render_messages.h" | 46 #include "chrome/common/render_messages.h" | 
| 47 #include "content/browser/appcache/chrome_appcache_service.h" |  | 
| 48 #include "content/browser/chrome_blob_storage_context.h" |  | 
| 49 #include "content/browser/file_system/browser_file_system_helper.h" |  | 
| 50 #include "content/browser/in_process_webkit/webkit_context.h" | 47 #include "content/browser/in_process_webkit/webkit_context.h" | 
| 51 #include "content/public/browser/browser_thread.h" | 48 #include "content/public/browser/browser_thread.h" | 
| 52 #include "content/public/browser/download_manager.h" | 49 #include "content/public/browser/download_manager.h" | 
| 53 #include "content/public/browser/web_contents.h" | 50 #include "content/public/browser/web_contents.h" | 
| 54 #include "content/public/browser/web_ui.h" | 51 #include "content/public/browser/web_ui.h" | 
| 55 #include "ui/base/resource/resource_bundle.h" | 52 #include "ui/base/resource/resource_bundle.h" | 
| 56 #include "webkit/database/database_tracker.h" |  | 
| 57 #include "webkit/quota/quota_manager.h" |  | 
| 58 | 53 | 
| 59 #if defined(TOOLKIT_USES_GTK) | 54 #if defined(TOOLKIT_USES_GTK) | 
| 60 #include "chrome/browser/ui/gtk/gtk_theme_service.h" | 55 #include "chrome/browser/ui/gtk/gtk_theme_service.h" | 
| 61 #endif | 56 #endif | 
| 62 | 57 | 
| 63 using base::Time; | 58 using base::Time; | 
| 64 using base::TimeDelta; | 59 using base::TimeDelta; | 
| 65 | 60 | 
| 66 // A pointer to the request context for the default profile.  See comments on | 61 // A pointer to the request context for the default profile.  See comments on | 
| 67 // Profile::GetDefaultRequestContext. | 62 // Profile::GetDefaultRequestContext. | 
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 199   return is_guest_session; | 194   return is_guest_session; | 
| 200 #else | 195 #else | 
| 201   return false; | 196   return false; | 
| 202 #endif | 197 #endif | 
| 203 } | 198 } | 
| 204 | 199 | 
| 205 bool Profile::IsSyncAccessible() { | 200 bool Profile::IsSyncAccessible() { | 
| 206   browser_sync::SyncPrefs prefs(GetPrefs()); | 201   browser_sync::SyncPrefs prefs(GetPrefs()); | 
| 207   return ProfileSyncService::IsSyncEnabled() && !prefs.IsManaged(); | 202   return ProfileSyncService::IsSyncEnabled() && !prefs.IsManaged(); | 
| 208 } | 203 } | 
| OLD | NEW | 
|---|