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

Unified Diff: chrome/browser/profiles/off_the_record_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
« no previous file with comments | « no previous file | chrome/browser/profiles/off_the_record_profile_io_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index ba76575f0711917caca23dc9354e091fbff208d9..cbda251b3cc879504cb7b58c22b867f9a4f88e6e 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -114,7 +114,7 @@ void OffTheRecordProfileImpl::Init() {
GetChromeURLDataManager()->AddDataSource(icon_source);
ChromePluginServiceFilter::GetInstance()->RegisterResourceContext(
- PluginPrefs::GetForProfile(this), &GetResourceContext());
+ PluginPrefs::GetForProfile(this), &io_data_.GetResourceContextNoInit());
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
@@ -127,7 +127,7 @@ OffTheRecordProfileImpl::~OffTheRecordProfileImpl() {
content::NotificationService::NoDetails());
ChromePluginServiceFilter::GetInstance()->UnregisterResourceContext(
- &GetResourceContext());
+ &io_data_.GetResourceContextNoInit());
ProfileDependencyManager::GetInstance()->DestroyProfileServices(this);
@@ -634,7 +634,7 @@ void OffTheRecordProfileImpl::CreateQuotaManagerAndClients() {
appcache_service_.get(),
IsOffTheRecord()
? FilePath() : GetPath().Append(chrome::kAppCacheDirname),
- &GetResourceContext(),
+ &io_data_.GetResourceContextNoInit(),
make_scoped_refptr(GetExtensionSpecialStoragePolicy())));
}
« no previous file with comments | « no previous file | chrome/browser/profiles/off_the_record_profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698