diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-26 22:46:22 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-26 22:46:22 +0000 |
commit | 9b5f60667cb4674740ced33201a28acea5ae1183 (patch) | |
tree | f3bcd1b2e6ee0d882f6954b106959ce57edf153f /chrome/browser/web_resource | |
parent | 6e3a70077033a4d37cb87bf521d5f99cc91921c8 (diff) | |
download | chromium_src-9b5f60667cb4674740ced33201a28acea5ae1183.zip chromium_src-9b5f60667cb4674740ced33201a28acea5ae1183.tar.gz chromium_src-9b5f60667cb4674740ced33201a28acea5ae1183.tar.bz2 |
Get URLRequestContextGetter from profile associated with the WebResourceService rather than the default profile.
BUG=70946, 70887
TEST=70887 crasher no longer happens.
Review URL: http://codereview.chromium.org/6290013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72708 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/web_resource')
-rw-r--r-- | chrome/browser/web_resource/web_resource_service.cc | 4 | ||||
-rw-r--r-- | chrome/browser/web_resource/web_resource_service.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/web_resource/web_resource_service.cc b/chrome/browser/web_resource/web_resource_service.cc index d42aa35..27dfe84 100644 --- a/chrome/browser/web_resource/web_resource_service.cc +++ b/chrome/browser/web_resource/web_resource_service.cc @@ -96,7 +96,9 @@ class WebResourceService::WebResourceFetcher // cookies, for example. url_fetcher_->set_load_flags(net::LOAD_DISABLE_CACHE | net::LOAD_DO_NOT_SAVE_COOKIES); - url_fetcher_->set_request_context(Profile::GetDefaultRequestContext()); + URLRequestContextGetter* url_request_context_getter = + web_resource_service_->profile()->GetRequestContext(); + url_fetcher_->set_request_context(url_request_context_getter); url_fetcher_->Start(); } diff --git a/chrome/browser/web_resource/web_resource_service.h b/chrome/browser/web_resource/web_resource_service.h index 2373757..815eaf7 100644 --- a/chrome/browser/web_resource/web_resource_service.h +++ b/chrome/browser/web_resource/web_resource_service.h @@ -138,6 +138,8 @@ class WebResourceService int cache_update_delay() const { return cache_update_delay_; } + Profile* profile() const { return profile_; } + static const char* kCurrentTipPrefName; static const char* kTipCachePrefName; |