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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java

Issue 2875553002: [TTS] Remove the blacklist and first char metrics. (Closed)
Patch Set: Removed and obsoleted the started-with-capital uma and histogram. Plus a rebase. Created 3 years, 7 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
Index: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java
index 5a40ac5d0cd66f6ab2f2e04d2c336d5dac74cedc..c2472f52a063530b64c3dc410f1714490152df36 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java
@@ -9,7 +9,6 @@ import android.text.TextUtils;
import org.chromium.base.VisibleForTesting;
import org.chromium.chrome.browser.ChromeActivity;
import org.chromium.chrome.browser.compositor.bottombar.OverlayPanel;
-import org.chromium.chrome.browser.contextualsearch.ContextualSearchBlacklist.BlacklistReason;
import org.chromium.chrome.browser.preferences.ChromePreferenceManager;
import org.chromium.chrome.browser.tab.Tab;
import org.chromium.content.browser.ContentViewCore;
@@ -489,19 +488,6 @@ public class ContextualSearchSelectionController {
boolean isValid = isValidSelection(selection);
if (mSelectionType == SelectionType.TAP) {
- BlacklistReason reason =
- ContextualSearchBlacklist.findReasonToSuppressSelection(selection);
-
- mHandler.handleSelectionSuppression(reason);
-
- // Only really suppress if enabled by field trial. Currently we can't prevent a
- // selection from being issued, so we end up clearing the selection immediately
- // afterwards, which does not look great.
- // TODO(pedrosimonetti): actually suppress selection once the system supports it.
- if (ContextualSearchFieldTrial.isBlacklistEnabled() && reason != BlacklistReason.NONE) {
- isValid = false;
- }
-
int minSelectionLength = ContextualSearchFieldTrial.getMinimumSelectionLength();
if (selection.length() < minSelectionLength) {
isValid = false;

Powered by Google App Engine
This is Rietveld 408576698