Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1522)

Unified Diff: android_webview/browser/aw_content_browser_client.cc

Issue 2491103003: [Autofill]Enable mojo AutofillDriver for android_webview. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/browser/aw_content_browser_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_content_browser_client.cc
diff --git a/android_webview/browser/aw_content_browser_client.cc b/android_webview/browser/aw_content_browser_client.cc
index 021681d964a9b368f0af0098405ebb5cd9e640f8..7c065fc45267aa99b3a95ea0ce9c7cfdf35c0a57 100644
--- a/android_webview/browser/aw_content_browser_client.cc
+++ b/android_webview/browser/aw_content_browser_client.cc
@@ -33,6 +33,7 @@
#include "base/json/json_reader.h"
#include "base/memory/ptr_util.h"
#include "base/path_service.h"
+#include "components/autofill/content/browser/content_autofill_driver_factory.h"
#include "components/cdm/browser/cdm_message_filter_android.h"
#include "components/crash/content/browser/crash_micro_dump_manager_android.h"
#include "components/navigation_interception/intercept_navigation_delegate.h"
@@ -55,6 +56,7 @@
#include "net/android/network_library.h"
#include "net/ssl/ssl_cert_request_info.h"
#include "net/ssl/ssl_info.h"
+#include "services/service_manager/public/cpp/interface_registry.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/resource/resource_bundle_android.h"
#include "ui/resources/grit/ui_resources.h"
@@ -539,4 +541,12 @@ AwContentBrowserClient::GetServiceManifestOverlay(const std::string& name) {
return base::JSONReader::Read(manifest_contents);
}
+void AwContentBrowserClient::RegisterRenderFrameMojoInterfaces(
+ service_manager::InterfaceRegistry* registry,
+ content::RenderFrameHost* render_frame_host) {
+ registry->AddInterface(
+ base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver,
vabr (Chromium) 2016/11/11 09:07:42 When you bind this, does it mean that the browser-
sgurun-gerrit only 2016/11/18 23:51:28 yes it works the same way as chrome. Specifically,
leonhsl(Using Gerrit) 2016/11/19 12:05:31 Thanks sgurun@ a lot for the clarifications. As fo
+ render_frame_host));
+}
+
} // namespace android_webview
« no previous file with comments | « android_webview/browser/aw_content_browser_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698