summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-10-22 17:47:02 +0100
committerSteve Block <steveblock@google.com>2010-10-25 12:17:37 +0100
commit6f97ad3a73e748b7f964e0108fdd1b41b2f8616d (patch)
tree0ffb027378833dbe0bb193df42a2ea9bf1aa852e /WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp
parent473914e4cc1449840f725eab52e7796e7c1fb38d (diff)
downloadexternal_webkit-6f97ad3a73e748b7f964e0108fdd1b41b2f8616d.zip
external_webkit-6f97ad3a73e748b7f964e0108fdd1b41b2f8616d.tar.gz
external_webkit-6f97ad3a73e748b7f964e0108fdd1b41b2f8616d.tar.bz2
Hide details of private browsing for URLRequestContext from Chromium AutoFill code
Change-Id: I58a388ecf16b2af4f1cd31afb39d0aa6c5c44a24
Diffstat (limited to 'WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp')
-rw-r--r--WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp b/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp
index 96ee9f6..26c377e 100644
--- a/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp
+++ b/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp
@@ -49,13 +49,18 @@
namespace android
{
+static URLRequestContext* WebAutoFillContextGetter()
+{
+ return WebRequestContext::GetContext(false /* isPrivateBrowsing */);
+}
+
WebAutoFill::WebAutoFill()
: mWebViewCore(0)
{
mFormManager = new FormManager();
mQueryId = 1;
- AndroidURLRequestContextGetter::Get()->SetURLRequestContextGetterFunction(&WebRequestContext::GetContext);
+ AndroidURLRequestContextGetter::Get()->SetURLRequestContextGetterFunction(&WebAutoFillContextGetter);
AndroidURLRequestContextGetter::Get()->SetIOThread(WebUrlLoaderClient::ioThread());
mTabContents = new TabContents();
mAutoFillManager = new AutoFillManager(mTabContents.get());