summaryrefslogtreecommitdiffstats
path: root/android_webview/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'android_webview/renderer')
-rw-r--r--android_webview/renderer/DEPS1
-rw-r--r--android_webview/renderer/aw_content_renderer_client.cc8
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() {