From 0b84ecf50c01e0fbf7307ca7cae55ab3043c75a3 Mon Sep 17 00:00:00 2001 From: Elliott Slaughter Date: Mon, 23 Aug 2010 18:24:00 -0700 Subject: Cleanup temporary incognito mode files after last tab closes. Change-Id: Ib55ef570b181afc99991afb55b6880b7a13f69a7 --- WebKit/android/WebCoreSupport/WebRequest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'WebKit/android/WebCoreSupport/WebRequest.cpp') 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 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(); } -- cgit v1.1