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..a71fc07eb63be5b48c804fd67b941576bd22d5e4 100644 |
--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc |
+++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc |
@@ -202,20 +202,6 @@ void DomDistillerViewerSource::StartDataRequest( |
content::RecordAction(base::UserMetricsAction("DomDistiller_ViewOriginal")); |
callback.Run(NULL); |
return; |
- } else if (kFeedbackBad == path) { |
- FeedbackReporter::ReportQuality(false); |
- callback.Run(NULL); |
- if (!external_feedback_reporter_) |
- return; |
- content::WebContents* contents = |
- content::WebContents::FromRenderFrameHost(render_frame_host); |
- external_feedback_reporter_->ReportExternalFeedback( |
- contents, contents->GetURL(), false); |
- return; |
- } else if (kFeedbackGood == path) { |
- FeedbackReporter::ReportQuality(true); |
- callback.Run(NULL); |
- return; |
} |
content::WebContents* web_contents = |
content::WebContents::FromRenderFrameHost(render_frame_host); |
@@ -240,7 +226,9 @@ void DomDistillerViewerSource::StartDataRequest( |
// Add mojo service for JavaScript functionality. This is the receiving end |
// of this particular service. |
render_frame_host->GetServiceRegistry()->AddService( |
- base::Bind(&CreateDistillerJavaScriptService)); |
+ base::Bind(&CreateDistillerJavaScriptService, |
+ render_frame_host, |
+ external_feedback_reporter_.get())); |
// Tell the renderer that this is currently a distilled page. |
DistillerPageNotifierServicePtr page_notifier_service; |