From e3fbba10e78cdeea2757b306d02c2853ac0187ee Mon Sep 17 00:00:00 2001 From: Steve Block Date: Thu, 30 Sep 2010 12:10:26 +0100 Subject: Update AndroidURLRequestContextGetter to take a pointer to the getter function This allows users of AndroidURLRequestContextGetter to instantiate a URLRequestContext lazilly. When used in AutoFill++, this means that when the URLRequestContext is first initialized, the WebCore thread is set-up and the necessary settings are available. Also re-enables AutoFill++ The corresponding external/chromium change is https://android-git.corp.google.com/g/71275 Bug: 3044989 Change-Id: I4b577f08717775bce5268f3f4b4f5fcf23e54536 --- WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'WebKit/android/WebCoreSupport') diff --git a/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp b/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp index f9fc954..aff1e2f 100644 --- a/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp +++ b/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp @@ -55,7 +55,7 @@ WebAutoFill::WebAutoFill() mFormManager = new FormManager(); mQueryId = 1; - AndroidURLRequestContextGetter::Get()->SetURLRequestContext(WebRequestContext::GetAndroidContext()); + AndroidURLRequestContextGetter::Get()->SetURLRequestContextGetterFunction(&WebRequestContext::GetAndroidContext); AndroidURLRequestContextGetter::Get()->SetIOThread(WebUrlLoaderClient::ioThread()); TabContents* tabContents = new TabContents(); mAutoFillManager = new AutoFillManager(tabContents); -- cgit v1.1