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

Unified Diff: ios/chrome/browser/dom_distiller/distiller_viewer.cc

Issue 1160113004: HTML exit reader view button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up Created 5 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
« no previous file with comments | « components/test/data/dom_distiller/pinch_tester.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/dom_distiller/distiller_viewer.cc
diff --git a/ios/chrome/browser/dom_distiller/distiller_viewer.cc b/ios/chrome/browser/dom_distiller/distiller_viewer.cc
index 1e1aab96e3ee60b9346051a581a0cc9271de93eb..9ec395286236817b1cdf90e60351197887721e52 100644
--- a/ios/chrome/browser/dom_distiller/distiller_viewer.cc
+++ b/ios/chrome/browser/dom_distiller/distiller_viewer.cc
@@ -49,9 +49,8 @@ void DistillerViewer::OnArticleReady(
distilled_page_prefs_->GetFontFamily());
std::string html_and_script(html);
- std::string hide_feedback =
- "document.getElementById('feedbackContainer').style.display = 'none';";
- html_and_script += "<script>" + js_buffer_ + hide_feedback + "</script>";
+ html_and_script +=
+ "<script> distiller_on_ios = true; " + js_buffer_ + "</script>";
callback_.Run(url_, html_and_script);
}
« no previous file with comments | « components/test/data/dom_distiller/pinch_tester.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698