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

Unified Diff: chrome/browser/android/contextualsearch/contextual_search_manager.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: chrome/browser/android/contextualsearch/contextual_search_manager.cc
diff --git a/chrome/browser/android/contextualsearch/contextual_search_manager.cc b/chrome/browser/android/contextualsearch/contextual_search_manager.cc
index 385ca75e81f8c7dbd8ca5f1fb95a7443fd235043..9a8cd9ed290438be905e8d14140619232ee45280 100644
--- a/chrome/browser/android/contextualsearch/contextual_search_manager.cc
+++ b/chrome/browser/android/contextualsearch/contextual_search_manager.cc
@@ -22,9 +22,10 @@
#include "content/public/browser/android/content_view_core.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_view_host.h"
-#include "content/public/common/service_registry.h"
#include "jni/ContextualSearchManager_jni.h"
#include "net/url_request/url_fetcher_impl.h"
+#include "services/shell/public/cpp/interface_provider.h"
+#include "services/shell/public/cpp/interface_registry.h"
using content::ContentViewCore;
@@ -181,13 +182,13 @@ void ContextualSearchManager::EnableContextualSearchJsApiForOverlay(
->GetMainFrame();
DCHECK(render_frame_host);
contextual_search::mojom::OverlayPageNotifierServicePtr page_notifier_service;
- render_frame_host->GetServiceRegistry()->ConnectToRemoteService(
- mojo::GetProxy(&page_notifier_service));
+ render_frame_host->GetRemoteInterfaces()->GetInterface(
+ &page_notifier_service);
DCHECK(page_notifier_service);
page_notifier_service->NotifyIsContextualSearchOverlay();
// Also set up the backchannel to call into this class from the JS API.
- render_frame_host->GetServiceRegistry()->AddService(
+ render_frame_host->GetInterfaceRegistry()->AddInterface(
base::Bind(&contextual_search::CreateContextualSearchJsApiService, this));
}
« no previous file with comments | « blimp/engine/renderer/blob_channel_sender_proxy.cc ('k') | chrome/browser/android/mojo/chrome_service_registrar_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698