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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 7685009: Revert "Modifying prefetch to account for multi-profile." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/profiles/profile_impl_io_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 42e574a1df378f14f8a1318779b43e9e84a84209..7790c4785b46b5040acf81ea2ffbae9609b36658 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -47,7 +47,6 @@
#include "chrome/browser/net/chrome_url_request_context.h"
#include "chrome/browser/net/gaia/token_service.h"
#include "chrome/browser/net/net_pref_observer.h"
-#include "chrome/browser/net/predictor.h"
#include "chrome/browser/net/pref_proxy_config_service.h"
#include "chrome/browser/net/ssl_config_service_manager.h"
#include "chrome/browser/password_manager/password_store_default.h"
@@ -307,8 +306,7 @@ ProfileImpl::ProfileImpl(const FilePath& path,
#if defined(OS_WIN)
checked_instant_promo_(false),
#endif
- delegate_(delegate),
- predictor_(NULL) {
+ delegate_(delegate) {
DCHECK(!path.empty()) << "Using an empty path will attempt to write " <<
"profile files to the root directory!";
@@ -316,13 +314,6 @@ ProfileImpl::ProfileImpl(const FilePath& path,
TimeDelta::FromMilliseconds(kCreateSessionServiceDelayMS), this,
&ProfileImpl::EnsureSessionServiceCreated);
- // Determine if prefetch is enabled for this profile.
- // If not profile_manager is present, it means we are in a unittest.
- const CommandLine* command_line = CommandLine::ForCurrentProcess();
- predictor_ = chrome_browser_net::Predictor::CreatePredictor(
- !command_line->HasSwitch(switches::kDisablePreconnect),
- g_browser_process->profile_manager() == NULL);
-
if (delegate_) {
prefs_.reset(PrefService::CreatePrefService(
GetPrefFilePath(),
@@ -443,12 +434,9 @@ void ProfileImpl::DoFinalInit() {
// Make sure we initialize the ProfileIOData after everything else has been
// initialized that we might be reading from the IO thread.
-
io_data_.Init(cookie_path, origin_bound_cert_path, cache_path,
cache_max_size, media_cache_path, media_cache_max_size,
- extensions_cookie_path, app_path, predictor_,
- g_browser_process->local_state(),
- g_browser_process->io_thread());
+ extensions_cookie_path, app_path);
// Creation has been finished.
if (delegate_)
@@ -907,7 +895,7 @@ void ProfileImpl::OnPrefsLoaded(bool success) {
DCHECK(!net_pref_observer_.get());
net_pref_observer_.reset(
- new NetPrefObserver(prefs_.get(), GetPrerenderManager(), predictor_));
+ new NetPrefObserver(prefs_.get(), GetPrerenderManager()));
DoFinalInit();
}
@@ -1730,10 +1718,6 @@ prerender::PrerenderManager* ProfileImpl::GetPrerenderManager() {
return prerender_manager_.get();
}
-chrome_browser_net::Predictor* ProfileImpl::GetNetworkPredictor() {
- return predictor_;
-}
-
SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() {
if (!spellcheck_profile_.get())
spellcheck_profile_.reset(new SpellCheckProfile());
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/profiles/profile_impl_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698