summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-19 23:29:52 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-19 23:29:52 +0000
commit26b8c69ed3352035c84e097a2f8cd7c2b44f93a2 (patch)
treef6e8fa884bbb2f53f7fa3444a4b7ef496441a49f /content
parente0232412d51848e0a09589a5498e12ebf4fd05fe (diff)
downloadchromium_src-26b8c69ed3352035c84e097a2f8cd7c2b44f93a2.zip
chromium_src-26b8c69ed3352035c84e097a2f8cd7c2b44f93a2.tar.gz
chromium_src-26b8c69ed3352035c84e097a2f8cd7c2b44f93a2.tar.bz2
Set the ChromeBlobStorageContext on content_shell's content::ResourceContext so that gmail sign-in doesn't crash.
BUG=90445 Review URL: http://codereview.chromium.org/7966003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101864 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/shell/shell_browser_context.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/content/shell/shell_browser_context.cc b/content/shell/shell_browser_context.cc
index 32223b8..fed9fba 100644
--- a/content/shell/shell_browser_context.cc
+++ b/content/shell/shell_browser_context.cc
@@ -171,8 +171,10 @@ class ShellURLRequestContextGetter : public net::URLRequestContextGetter {
class ShellResourceContext : public content::ResourceContext {
public:
- ShellResourceContext(ShellURLRequestContextGetter* getter)
- : getter_(getter) {
+ ShellResourceContext(ShellURLRequestContextGetter* getter,
+ ChromeBlobStorageContext* blob_storage_context)
+ : getter_(getter),
+ blob_storage_context_(blob_storage_context) {
}
private:
@@ -183,9 +185,11 @@ class ShellResourceContext : public content::ResourceContext {
void InitializeInternal() {
set_request_context(getter_->GetURLRequestContext());
set_host_resolver(getter_->host_resolver());
+ set_blob_storage_context(blob_storage_context_);
}
scoped_refptr<ShellURLRequestContextGetter> getter_;
+ scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
};
class ShellGeolocationPermissionContext : public GeolocationPermissionContext {
@@ -292,7 +296,8 @@ net::URLRequestContextGetter*
const ResourceContext& ShellBrowserContext::GetResourceContext() {
if (!resource_context_.get()) {
resource_context_.reset(new ShellResourceContext(
- static_cast<ShellURLRequestContextGetter*>(GetRequestContext())));
+ static_cast<ShellURLRequestContextGetter*>(GetRequestContext()),
+ GetBlobStorageContext()));
}
return *resource_context_.get();
}