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

Side by Side Diff: chrome/browser/profiles/profile.cc

Issue 9419033: Move creation of BrowserContext objects that live in content to content, instead of depending on th… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix memory leaks in tests Created 8 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/profiles/profile.h ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile.h ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698