summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport/WebRequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/WebCoreSupport/WebRequest.cpp')
-rw-r--r--WebKit/android/WebCoreSupport/WebRequest.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/WebKit/android/WebCoreSupport/WebRequest.cpp b/WebKit/android/WebCoreSupport/WebRequest.cpp
index 0e3149d..77e1acb 100644
--- a/WebKit/android/WebCoreSupport/WebRequest.cpp
+++ b/WebKit/android/WebCoreSupport/WebRequest.cpp
@@ -140,11 +140,7 @@ void WebRequest::start(bool isPrivateBrowsing)
if (m_request->url().SchemeIs("browser"))
return handleBrowserURL(m_request->url());
- scoped_refptr<URLRequestContext> context;
- if (!isPrivateBrowsing)
- context = WebRequestContext::GetAndroidContext();
- else
- context = WebRequestContext::GetAndroidPrivateBrowsingContext();
+ URLRequestContext* context = WebRequestContext::GetContext(isPrivateBrowsing);
m_request->set_context(context);
m_request->Start();