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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2496763002: Disable content intent detectors in the renderer (Closed)
Patch Set: Created 4 years, 1 month 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: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index bd45f5364edae9520ea4c36f17e3ba2b3a973b86..2a8ae3366086ac7df53acf63789da1ed9588cc26 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -2689,6 +2689,12 @@ void RenderViewImpl::pageImportanceSignalsChanged() {
#if defined(OS_ANDROID)
WebURL RenderViewImpl::detectContentIntentAt(
const WebHitTestResult& touch_hit) {
+ // TODO(twellington): Remove content detection entirely. It is
+ // currently only enabled for tests. crbug.com/664307.
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableContentIntentDetection)) {
+ return WebURL();;
aelias_OOO_until_Jul13 2016/11/10 23:27:37 nit: duplicate whitespace and semicolons
Theresa 2016/11/10 23:32:19 Done.
+ }
DCHECK(touch_hit.node().isTextNode());
// Process the position with all the registered content detectors until

Powered by Google App Engine
This is Rietveld 408576698