diff options
author | Steve Block <steveblock@google.com> | 2010-10-27 09:49:32 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-10-27 14:07:29 +0100 |
commit | f8d8851981c0c0605a653850bddde79841119470 (patch) | |
tree | 91c048729d7d11e78da11a0e7db08e75220e2d6a /WebKit/android/WebCoreSupport/autofill | |
parent | 054de1f8acc4c600081c0a52af7524ad6ab07629 (diff) | |
download | external_webkit-f8d8851981c0c0605a653850bddde79841119470.zip external_webkit-f8d8851981c0c0605a653850bddde79841119470.tar.gz external_webkit-f8d8851981c0c0605a653850bddde79841119470.tar.bz2 |
Fixes style in WebRequestContext
Previously this file used Chromium style, as it extends a Chromium
class. However, I think it's best to switch to WebKit style to prevent
Chromium style from leaking into the rest of WebKit.
Also switches static member methods to file-scope static functions
where possible.
Finally, return WebRequestContext* rather than URLRequestContext* to
allow us to call methods in the derived class. this will be required
to hook up CookieManager.
Change-Id: Ifdca62230a3728e338904ef1b9b392640af06a92
Diffstat (limited to 'WebKit/android/WebCoreSupport/autofill')
-rw-r--r-- | WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp b/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp index 26c377e..ef9d598 100644 --- a/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp +++ b/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp @@ -49,9 +49,9 @@ namespace android { -static URLRequestContext* WebAutoFillContextGetter() +static URLRequestContext* webAutoFillContextGetter() { - return WebRequestContext::GetContext(false /* isPrivateBrowsing */); + return WebRequestContext::get(false /* isPrivateBrowsing */); } WebAutoFill::WebAutoFill() @@ -60,7 +60,7 @@ WebAutoFill::WebAutoFill() mFormManager = new FormManager(); mQueryId = 1; - AndroidURLRequestContextGetter::Get()->SetURLRequestContextGetterFunction(&WebAutoFillContextGetter); + AndroidURLRequestContextGetter::Get()->SetURLRequestContextGetterFunction(&webAutoFillContextGetter); AndroidURLRequestContextGetter::Get()->SetIOThread(WebUrlLoaderClient::ioThread()); mTabContents = new TabContents(); mAutoFillManager = new AutoFillManager(mTabContents.get()); |