diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-17 16:49:29 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-17 16:49:29 +0000 |
commit | 7fd47a85b9e070b1acbe4d6129f0edb9e3498099 (patch) | |
tree | 26a20943bc57da6e615b6b67f4bc039adffaaa02 /content/browser/renderer_host/render_view_host.cc | |
parent | adb57e8c2fe59d5e27fac60f7870fd5157e8aca7 (diff) | |
download | chromium_src-7fd47a85b9e070b1acbe4d6129f0edb9e3498099.zip chromium_src-7fd47a85b9e070b1acbe4d6129f0edb9e3498099.tar.gz chromium_src-7fd47a85b9e070b1acbe4d6129f0edb9e3498099.tar.bz2 |
Move creation of BrowserContext objects that live in content to content, instead of depending on the embedder. Apart from allowing us to hide more of content from embedders, it simplifies the work that every embedder has to do (see the change the shell_browser_context.cc as an example).
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9419033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122521 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/render_view_host.cc')
-rw-r--r-- | content/browser/renderer_host/render_view_host.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content/browser/renderer_host/render_view_host.cc b/content/browser/renderer_host/render_view_host.cc index 9e6086d..4b74771 100644 --- a/content/browser/renderer_host/render_view_host.cc +++ b/content/browser/renderer_host/render_view_host.cc @@ -59,6 +59,7 @@ #include "webkit/glue/webdropdata.h" using base::TimeDelta; +using content::BrowserContext; using content::BrowserMessageFilter; using content::BrowserThread; using content::DomOperationNotificationDetails; @@ -136,7 +137,7 @@ RenderViewHost::RenderViewHost(SiteInstance* instance, render_view_termination_status_(base::TERMINATION_STATUS_STILL_RUNNING) { if (!session_storage_namespace_) { session_storage_namespace_ = new SessionStorageNamespace( - process()->GetBrowserContext()->GetWebKitContext()); + BrowserContext::GetWebKitContext(process()->GetBrowserContext())); } DCHECK(instance_); |