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

Unified Diff: components/autofill/content/renderer/autofill_agent.cc

Issue 2079943002: Change RenderFrame to use InterfaceRegistry et al. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2
Patch Set: . Created 4 years, 6 months 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 | « components/autofill/content/renderer/BUILD.gn ('k') | components/contextual_search/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/renderer/autofill_agent.cc
diff --git a/components/autofill/content/renderer/autofill_agent.cc b/components/autofill/content/renderer/autofill_agent.cc
index 16533e7ecf9ab5d63cbc83834c676f937a4bdff4..e09d2100935368f204bc3cef46eef3dfb53d85ef 100644
--- a/components/autofill/content/renderer/autofill_agent.cc
+++ b/components/autofill/content/renderer/autofill_agent.cc
@@ -38,12 +38,13 @@
#include "components/autofill/core/common/password_form_fill_data.h"
#include "components/autofill/core/common/save_password_progress_logger.h"
#include "content/public/common/content_switches.h"
-#include "content/public/common/service_registry.h"
#include "content/public/common/ssl_status.h"
#include "content/public/common/url_constants.h"
#include "content/public/renderer/render_frame.h"
#include "content/public/renderer/render_view.h"
#include "net/cert/cert_status_flags.h"
+#include "services/shell/public/cpp/interface_provider.h"
+#include "services/shell/public/cpp/interface_registry.h"
#include "third_party/WebKit/public/platform/WebURLRequest.h"
#include "third_party/WebKit/public/web/WebConsoleMessage.h"
#include "third_party/WebKit/public/web/WebDataSource.h"
@@ -182,7 +183,7 @@ AutofillAgent::AutofillAgent(content::RenderFrame* render_frame,
render_frame->GetWebFrame()->setAutofillClient(this);
// AutofillAgent is guaranteed to outlive |render_frame|.
- render_frame->GetServiceRegistry()->AddService(
+ render_frame->GetInterfaceRegistry()->AddInterface(
base::Bind(&AutofillAgent::BindRequest, base::Unretained(this)));
// This owns itself, and will delete itself when |render_frame| is destructed
@@ -803,8 +804,7 @@ void AutofillAgent::ConnectToMojoAutofillDriverIfNeeded() {
!mojo_autofill_driver_.encountered_error())
return;
- render_frame()->GetServiceRegistry()->ConnectToRemoteService(
- mojo::GetProxy(&mojo_autofill_driver_));
+ render_frame()->GetRemoteInterfaces()->GetInterface(&mojo_autofill_driver_);
}
// LegacyAutofillAgent ---------------------------------------------------------
« no previous file with comments | « components/autofill/content/renderer/BUILD.gn ('k') | components/contextual_search/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698