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

Unified Diff: components/contextual_search/renderer/contextual_search_wrapper.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
Index: components/contextual_search/renderer/contextual_search_wrapper.cc
diff --git a/components/contextual_search/renderer/contextual_search_wrapper.cc b/components/contextual_search/renderer/contextual_search_wrapper.cc
index f70ef79340fb448a77bdd05e40338b365dd665e3..917e1d55a164a75a3785d2a52b1a6a226fc28535 100644
--- a/components/contextual_search/renderer/contextual_search_wrapper.cc
+++ b/components/contextual_search/renderer/contextual_search_wrapper.cc
@@ -5,11 +5,11 @@
#include "components/contextual_search/renderer/contextual_search_wrapper.h"
#include "base/strings/string_util.h"
-#include "content/public/common/service_registry.h"
#include "content/public/renderer/chrome_object_extensions_utils.h"
#include "content/public/renderer/render_frame.h"
#include "gin/arguments.h"
#include "gin/object_template_builder.h"
+#include "services/shell/public/cpp/interface_provider.h"
#include "third_party/WebKit/public/web/WebFrame.h"
#include "third_party/WebKit/public/web/WebKit.h"
#include "third_party/WebKit/public/web/WebLocalFrame.h"
@@ -72,8 +72,8 @@ gin::ObjectTemplateBuilder ContextualSearchWrapper::GetObjectTemplateBuilder(
bool ContextualSearchWrapper::EnsureServiceConnected() {
if (render_frame() && (!contextual_search_js_api_service_ ||
!contextual_search_js_api_service_.is_bound())) {
- render_frame()->GetServiceRegistry()->ConnectToRemoteService(
- mojo::GetProxy(&contextual_search_js_api_service_));
+ render_frame()->GetRemoteInterfaces()->GetInterface(
+ &contextual_search_js_api_service_);
return true;
} else {
return false;
« no previous file with comments | « components/contextual_search/DEPS ('k') | components/contextual_search/renderer/overlay_js_render_frame_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698