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

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

Issue 16254003: WIP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/prefs/browser_prefs.cc ('k') | chrome/browser/ui/webui/policy_ui.cc » ('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_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "chrome/browser/history/top_sites.h" 46 #include "chrome/browser/history/top_sites.h"
47 #include "chrome/browser/metrics/metrics_service.h" 47 #include "chrome/browser/metrics/metrics_service.h"
48 #include "chrome/browser/net/chrome_url_request_context.h" 48 #include "chrome/browser/net/chrome_url_request_context.h"
49 #include "chrome/browser/net/net_pref_observer.h" 49 #include "chrome/browser/net/net_pref_observer.h"
50 #include "chrome/browser/net/predictor.h" 50 #include "chrome/browser/net/predictor.h"
51 #include "chrome/browser/net/proxy_service_factory.h" 51 #include "chrome/browser/net/proxy_service_factory.h"
52 #include "chrome/browser/net/ssl_config_service_manager.h" 52 #include "chrome/browser/net/ssl_config_service_manager.h"
53 #include "chrome/browser/net/url_fixer_upper.h" 53 #include "chrome/browser/net/url_fixer_upper.h"
54 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" 54 #include "chrome/browser/plugins/chrome_plugin_service_filter.h"
55 #include "chrome/browser/plugins/plugin_prefs.h" 55 #include "chrome/browser/plugins/plugin_prefs.h"
56 #include "chrome/browser/policy/policy_service.h"
56 #include "chrome/browser/prefs/browser_prefs.h" 57 #include "chrome/browser/prefs/browser_prefs.h"
57 #include "chrome/browser/prefs/chrome_pref_service_factory.h" 58 #include "chrome/browser/prefs/chrome_pref_service_factory.h"
58 #include "chrome/browser/prefs/pref_registry_syncable.h" 59 #include "chrome/browser/prefs/pref_registry_syncable.h"
59 #include "chrome/browser/prefs/pref_service_syncable.h" 60 #include "chrome/browser/prefs/pref_service_syncable.h"
60 #include "chrome/browser/prefs/scoped_user_pref_update.h" 61 #include "chrome/browser/prefs/scoped_user_pref_update.h"
61 #include "chrome/browser/prerender/prerender_manager_factory.h" 62 #include "chrome/browser/prerender/prerender_manager_factory.h"
62 #include "chrome/browser/profiles/bookmark_model_loaded_observer.h" 63 #include "chrome/browser/profiles/bookmark_model_loaded_observer.h"
63 #include "chrome/browser/profiles/chrome_version_service.h" 64 #include "chrome/browser/profiles/chrome_version_service.h"
64 #include "chrome/browser/profiles/gaia_info_update_service_factory.h" 65 #include "chrome/browser/profiles/gaia_info_update_service_factory.h"
65 #include "chrome/browser/profiles/profile_dependency_manager.h" 66 #include "chrome/browser/profiles/profile_dependency_manager.h"
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1184 base::FilePath* cache_path, 1185 base::FilePath* cache_path,
1185 int* max_size) { 1186 int* max_size) {
1186 DCHECK(cache_path); 1187 DCHECK(cache_path);
1187 DCHECK(max_size); 1188 DCHECK(max_size);
1188 base::FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); 1189 base::FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir));
1189 if (!path.empty()) 1190 if (!path.empty())
1190 *cache_path = path; 1191 *cache_path = path;
1191 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1192 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1192 prefs_->GetInteger(prefs::kDiskCacheSize); 1193 prefs_->GetInteger(prefs::kDiskCacheSize);
1193 } 1194 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/ui/webui/policy_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698