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

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

Issue 1532743002: [Contextual Search] Use Mojo API for Quick Answers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/ContextualSearchPolicy.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchPolicy.java b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchPolicy.java
index fe9aac6f02ffa29a59beb2f17bd4ffdb99f0f30a..7c4fd9e9fa6e0547c971ca50fa02231c8804f467 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchPolicy.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchPolicy.java
@@ -381,6 +381,13 @@ class ContextualSearchPolicy {
return false;
}
+ /**
+ * @return Whether Contextual Search should enable its API in the overlay panel.
+ */
+ boolean shouldEnableOverlayApi() {
pedro (no code reviews) 2015/12/22 23:15:39 Nit: I would call it shouldEnableJavaScriptApi() o
+ return ContextualSearchFieldTrial.isQuickAnswersEnabled();
+ }
+
// --------------------------------------------------------------------------------------------
// Testing support.
// --------------------------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698