diff options
author | sgurun@chromium.org <sgurun@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-22 00:57:48 +0000 |
---|---|---|
committer | sgurun@chromium.org <sgurun@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-22 00:57:48 +0000 |
commit | 6c7dcb2f278335c8ae8bbfd8ef3b440d5329bfa7 (patch) | |
tree | 2b2f7fe7d849de402ba4dac5ba15f75495693e70 /android_webview/renderer | |
parent | 3940e87eaee6fb59800cffba475a294e3fa5c72c (diff) | |
download | chromium_src-6c7dcb2f278335c8ae8bbfd8ef3b440d5329bfa7.zip chromium_src-6c7dcb2f278335c8ae8bbfd8ef3b440d5329bfa7.tar.gz chromium_src-6c7dcb2f278335c8ae8bbfd8ef3b440d5329bfa7.tar.bz2 |
Enable Autocomplete feature for chromium webview
Webview allows enabling/disabling autocomplete per instance which is different than chromium browser which does it per profile. Address this using external_delegate.
BUG=b/6335434
Review URL: https://chromiumcodereview.appspot.com/15097004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207984 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/renderer')
-rw-r--r-- | android_webview/renderer/DEPS | 1 | ||||
-rw-r--r-- | android_webview/renderer/aw_content_renderer_client.cc | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/android_webview/renderer/DEPS b/android_webview/renderer/DEPS index 2e57f9a..41dc519 100644 --- a/android_webview/renderer/DEPS +++ b/android_webview/renderer/DEPS @@ -3,6 +3,7 @@ include_rules = [ "+android_webview/common", "+android_webview/renderer", + "+components/autofill/content/renderer", "+components/visitedlink/renderer", "+content/public/renderer", diff --git a/android_webview/renderer/aw_content_renderer_client.cc b/android_webview/renderer/aw_content_renderer_client.cc index bd37491..5e7f370 100644 --- a/android_webview/renderer/aw_content_renderer_client.cc +++ b/android_webview/renderer/aw_content_renderer_client.cc @@ -9,6 +9,8 @@ #include "android_webview/renderer/aw_render_view_ext.h" #include "base/message_loop.h" #include "base/strings/utf_string_conversions.h" +#include "components/autofill/content/renderer/autofill_agent.h" +#include "components/autofill/content/renderer/password_autofill_agent.h" #include "components/visitedlink/renderer/visitedlink_slave.h" #include "content/public/renderer/render_thread.h" #include "googleurl/src/gurl.h" @@ -44,6 +46,12 @@ void AwContentRendererClient::RenderThreadStarted() { void AwContentRendererClient::RenderViewCreated( content::RenderView* render_view) { AwRenderViewExt::RenderViewCreated(render_view); + + // TODO(sgurun) do not create a password autofill agent (change + // autofill agent to store a weakptr). + autofill::PasswordAutofillAgent* password_autofill_agent = + new autofill::PasswordAutofillAgent(render_view); + new autofill::AutofillAgent(render_view, password_autofill_agent); } std::string AwContentRendererClient::GetDefaultEncoding() { |