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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2496763002: Disable content intent detectors in the renderer (Closed)
Patch Set: Disable content intent detectors in the renderer 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
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..670a2238d453022516a88fc7af5ee98af24c1fd5 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();
+ }
DCHECK(touch_hit.node().isTextNode());
// Process the position with all the registered content detectors until
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698