diff options
author | Steve Block <steveblock@google.com> | 2010-10-22 17:47:02 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-10-25 12:17:37 +0100 |
commit | 6f97ad3a73e748b7f964e0108fdd1b41b2f8616d (patch) | |
tree | 0ffb027378833dbe0bb193df42a2ea9bf1aa852e /WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp | |
parent | 473914e4cc1449840f725eab52e7796e7c1fb38d (diff) | |
download | external_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.cpp | 7 |
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()); |