summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/profile.cc6
-rw-r--r--chrome/common/appcache/chrome_appcache_service.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc
index f4fb817..de7f949 100644
--- a/chrome/browser/profile.cc
+++ b/chrome/browser/profile.cc
@@ -224,7 +224,8 @@ class OffTheRecordProfileImpl : public Profile,
virtual ChromeAppCacheService* GetAppCacheService() {
if (!appcache_service_.get()) {
appcache_service_ = new ChromeAppCacheService();
- appcache_service_->InitializeOnUIThread(GetPath(), true);
+ appcache_service_->InitializeOnUIThread(
+ GetPath(), GetRequestContext(), true);
}
return appcache_service_.get();
}
@@ -780,7 +781,8 @@ Profile* ProfileImpl::GetOriginalProfile() {
ChromeAppCacheService* ProfileImpl::GetAppCacheService() {
if (!appcache_service_.get()) {
appcache_service_ = new ChromeAppCacheService();
- appcache_service_->InitializeOnUIThread(GetPath(), false);
+ appcache_service_->InitializeOnUIThread(
+ GetPath(), GetRequestContext(), false);
}
return appcache_service_.get();
}
diff --git a/chrome/common/appcache/chrome_appcache_service.h b/chrome/common/appcache/chrome_appcache_service.h
index 63736da..3dd6082 100644
--- a/chrome/common/appcache/chrome_appcache_service.h
+++ b/chrome/common/appcache/chrome_appcache_service.h
@@ -33,8 +33,10 @@ class ChromeAppCacheService
}
void InitializeOnUIThread(const FilePath& data_directory,
+ URLRequestContext* request_context,
bool is_incognito) {
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
+ set_request_context(request_context);
// Some test cases run without an IO thread.
MessageLoop* io_thread = ChromeThread::GetMessageLoop(ChromeThread::IO);