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

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

Issue 8707002: Make ProfileImplIOData::Handle::GetResourceContext() imply LazyInitialize(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 11 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
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index e36bb9fd81d9daf499db1e6b92178181a78bb00c..8ff4bd4032596f3856ef5713e3360928ab1ce7fc 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -414,7 +414,8 @@ void ProfileImpl::DoFinalInit() {
restore_old_session_cookies);
ChromePluginServiceFilter::GetInstance()->RegisterResourceContext(
- PluginPrefs::GetForProfile(this), &GetResourceContext());
+ PluginPrefs::GetForProfile(this),
+ &io_data_.GetResourceContextNoInit());
// Creation has been finished.
if (delegate_)
@@ -571,7 +572,7 @@ ProfileImpl::~ProfileImpl() {
sync_service_.reset();
ChromePluginServiceFilter::GetInstance()->UnregisterResourceContext(
- &GetResourceContext());
+ &io_data_.GetResourceContextNoInit());
ProfileDependencyManager::GetInstance()->DestroyProfileServices(this);
@@ -1285,7 +1286,7 @@ void ProfileImpl::CreateQuotaManagerAndClients() {
appcache_service_.get(),
IsOffTheRecord()
? FilePath() : GetPath().Append(chrome::kAppCacheDirname),
- &GetResourceContext(),
+ &io_data_.GetResourceContextNoInit(),
make_scoped_refptr(GetExtensionSpecialStoragePolicy())));
}
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_io_data.cc ('k') | chrome/browser/profiles/profile_impl_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698