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

Unified Diff: components/dom_distiller/content/browser/distillability_driver.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/dom_distiller/content/browser/distillability_driver.cc
diff --git a/components/dom_distiller/content/browser/distillability_driver.cc b/components/dom_distiller/content/browser/distillability_driver.cc
index e0897d0a337aab8523e5c4891ffa60f08a3713f8..0448f9a3cba24b968d90af50c36fa64ea0aac73c 100644
--- a/components/dom_distiller/content/browser/distillability_driver.cc
+++ b/components/dom_distiller/content/browser/distillability_driver.cc
@@ -8,7 +8,7 @@
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/browser/web_contents_user_data.h"
-#include "content/public/common/service_registry.h"
+#include "services/shell/public/cpp/interface_registry.h"
DEFINE_WEB_CONTENTS_USER_DATA_KEY(
dom_distiller::DistillabilityDriver);
@@ -75,9 +75,9 @@ void DistillabilityDriver::SetupMojoService() {
if (!web_contents()) return;
content::RenderFrameHost* frame_host = web_contents()->GetMainFrame();
- if (!frame_host || !frame_host->GetServiceRegistry()) return;
+ if (!frame_host || !frame_host->GetInterfaceRegistry()) return;
- frame_host->GetServiceRegistry()->AddService(
+ frame_host->GetInterfaceRegistry()->AddInterface(
base::Bind(&DistillabilityDriver::CreateDistillabilityService,
weak_factory_.GetWeakPtr()));
}
« no previous file with comments | « components/dom_distiller/content/browser/DEPS ('k') | components/dom_distiller/content/browser/dom_distiller_viewer_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698