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
# The default is on. Chrome HTTP stack must be used when Autofill
# is turned on.
ifneq ($(ENABLE_AUTOFILL),false)
- ENABLE_AUTOFILL = false
+ ENABLE_AUTOFILL = true
endif
ifneq ($(HTTP_STACK),chrome)
ENABLE_AUTOFILL = false
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libwebcore_intermediates)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libwebcore_intermediates)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libwebcore_intermediates)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libwebcore_intermediates)
# ************************************************
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);