diff options
author | Elliott Slaughter <eds@google.com> | 2010-08-23 18:24:00 -0700 |
---|---|---|
committer | Elliott Slaughter <eds@google.com> | 2010-09-01 11:14:22 -0700 |
commit | 0b84ecf50c01e0fbf7307ca7cae55ab3043c75a3 (patch) | |
tree | 1c7c21b2d83a8af7f5da652a7ce7971d75b1d0f1 /WebKit/android/WebCoreSupport/WebRequest.cpp | |
parent | e7a439253f03e258c35f31fed37bf8e460f95158 (diff) | |
download | external_webkit-0b84ecf50c01e0fbf7307ca7cae55ab3043c75a3.zip external_webkit-0b84ecf50c01e0fbf7307ca7cae55ab3043c75a3.tar.gz external_webkit-0b84ecf50c01e0fbf7307ca7cae55ab3043c75a3.tar.bz2 |
Cleanup temporary incognito mode files after last tab closes.
Change-Id: Ib55ef570b181afc99991afb55b6880b7a13f69a7
Diffstat (limited to 'WebKit/android/WebCoreSupport/WebRequest.cpp')
-rw-r--r-- | WebKit/android/WebCoreSupport/WebRequest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/WebKit/android/WebCoreSupport/WebRequest.cpp b/WebKit/android/WebCoreSupport/WebRequest.cpp index a5ff85d..74a37c7 100644 --- a/WebKit/android/WebCoreSupport/WebRequest.cpp +++ b/WebKit/android/WebCoreSupport/WebRequest.cpp @@ -136,10 +136,12 @@ void WebRequest::start(bool isPrivateBrowsing) if (m_request->url().SchemeIs("browser")) return handleBrowserURL(m_request->url()); + scoped_refptr<WebRequestContext> context; if (!isPrivateBrowsing) - m_request->set_context(WebRequestContext::GetAndroidContext()); + context = WebRequestContext::GetAndroidContext(); else - m_request->set_context(WebRequestContext::GetAndroidPrivateBrowsingContext()); + context = WebRequestContext::GetAndroidPrivateBrowsingContext(); + m_request->set_context(context); m_request->Start(); } |