Index: components/dom_distiller/content/browser/dom_distiller_viewer_source.cc |
diff --git a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc |
index 03d9b2b00c937e95b8a7426d81eb5056e8e34360..275666bb8fd4a8ea678665875e30e39e9d6a4913 100644 |
--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc |
+++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc |
@@ -13,10 +13,8 @@ |
#include "base/message_loop/message_loop.h" |
#include "base/metrics/user_metrics.h" |
#include "base/strings/utf_string_conversions.h" |
-#include "components/dom_distiller/content/browser/distiller_javascript_service_impl.h" |
#include "components/dom_distiller/content/browser/distiller_javascript_utils.h" |
#include "components/dom_distiller/content/browser/external_feedback_reporter.h" |
-#include "components/dom_distiller/content/common/distiller_page_notifier_service.mojom.h" |
#include "components/dom_distiller/core/distilled_page_prefs.h" |
#include "components/dom_distiller/core/dom_distiller_request_view_base.h" |
#include "components/dom_distiller/core/dom_distiller_service.h" |
@@ -33,11 +31,9 @@ |
#include "content/public/browser/user_metrics.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/browser/web_contents_observer.h" |
-#include "content/public/common/service_registry.h" |
#include "grit/components_strings.h" |
#include "net/base/url_util.h" |
#include "net/url_request/url_request.h" |
-#include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" |
#include "ui/base/l10n/l10n_util.h" |
namespace dom_distiller { |
@@ -121,8 +117,9 @@ |
const content::LoadCommittedDetails& details, |
const content::FrameNavigateParams& params) { |
const GURL& navigation = details.entry->GetURL(); |
- if (details.is_in_page || (navigation.SchemeIs(expected_scheme_.c_str()) && |
- expected_request_path_ == navigation.query())) { |
+ if (details.is_in_page || ( |
+ navigation.SchemeIs(expected_scheme_.c_str()) && |
+ expected_request_path_ == navigation.query())) { |
// In-page navigations, as well as the main view request can be ignored. |
return; |
} |
@@ -187,8 +184,7 @@ |
const content::URLDataSource::GotDataCallback& callback) { |
content::RenderFrameHost* render_frame_host = |
content::RenderFrameHost::FromID(render_process_id, render_frame_id); |
- if (!render_frame_host) |
- return; |
+ if (!render_frame_host) return; |
content::RenderViewHost* render_view_host = |
render_frame_host->GetRenderViewHost(); |
DCHECK(render_view_host); |
@@ -237,18 +233,6 @@ |
dom_distiller_service_->GetDistilledPagePrefs()->GetTheme(), |
dom_distiller_service_->GetDistilledPagePrefs()->GetFontFamily()); |
- // Add mojo service for JavaScript functionality. This is the receiving end |
- // of this particular service. |
- render_frame_host->GetServiceRegistry()->AddService( |
- base::Bind(&CreateDistillerJavaScriptService)); |
- |
- // Tell the renderer that this is currently a distilled page. |
- DistillerPageNotifierServicePtr page_notifier_service; |
- render_frame_host->GetServiceRegistry()->ConnectToRemoteService( |
- mojo::GetProxy(&page_notifier_service)); |
- DCHECK(page_notifier_service); |
- page_notifier_service->NotifyIsDistillerPage(); |
- |
if (viewer_handle) { |
// The service returned a |ViewerHandle| and guarantees it will call |
// the |RequestViewerHandle|, so passing ownership to it, to ensure the |