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_impl.h" | 5 #include "chrome/browser/profiles/profile_impl.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
977 #endif | 977 #endif |
978 | 978 |
979 g_browser_process->profile_manager()->InitProfileUserPrefs(this); | 979 g_browser_process->profile_manager()->InitProfileUserPrefs(this); |
980 | 980 |
981 BrowserContextDependencyManager::GetInstance()->CreateBrowserContextServices( | 981 BrowserContextDependencyManager::GetInstance()->CreateBrowserContextServices( |
982 this); | 982 this); |
983 | 983 |
984 DCHECK(!net_pref_observer_); | 984 DCHECK(!net_pref_observer_); |
985 { | 985 { |
986 TRACE_EVENT0("browser", "ProfileImpl::OnPrefsLoaded:NetPrefObserver") | 986 TRACE_EVENT0("browser", "ProfileImpl::OnPrefsLoaded:NetPrefObserver") |
987 net_pref_observer_.reset(new NetPrefObserver( | 987 net_pref_observer_.reset(new NetPrefObserver(prefs_.get())); |
988 prefs_.get(), | |
989 prerender::PrerenderManagerFactory::GetForProfile(this), | |
990 predictor_)); | |
991 } | 988 } |
992 | 989 |
993 chrome_prefs::SchedulePrefsFilePathVerification(path_); | 990 chrome_prefs::SchedulePrefsFilePathVerification(path_); |
994 | 991 |
995 ChromeVersionService::OnProfileLoaded(prefs_.get(), IsNewProfile()); | 992 ChromeVersionService::OnProfileLoaded(prefs_.get(), IsNewProfile()); |
996 DoFinalInit(); | 993 DoFinalInit(); |
997 } | 994 } |
998 | 995 |
999 bool ProfileImpl::WasCreatedByVersionOrLater(const std::string& version) { | 996 bool ProfileImpl::WasCreatedByVersionOrLater(const std::string& version) { |
1000 Version profile_version(ChromeVersionService::GetVersion(prefs_.get())); | 997 Version profile_version(ChromeVersionService::GetVersion(prefs_.get())); |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1455 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1452 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
1456 GetForBrowserContext(this); | 1453 GetForBrowserContext(this); |
1457 if (!service) | 1454 if (!service) |
1458 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1455 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
1459 | 1456 |
1460 return service->CreateMonitor( | 1457 return service->CreateMonitor( |
1461 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), | 1458 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), |
1462 local_state, | 1459 local_state, |
1463 prefs::kMetricsReportingEnabled); | 1460 prefs::kMetricsReportingEnabled); |
1464 } | 1461 } |
OLD | NEW |