Index: chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchControl.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchControl.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchControl.java |
index f6206a891c45bb92deea3e244591e7b038fd6eca..17853b0110ca614a84fc49962bf7532b6e95ca45 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchControl.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchControl.java |
@@ -82,6 +82,23 @@ |
} |
/** |
+ * Sets the text to display on top of the first-run promo. |
+ * @param selection The portion of the text that represents the user's selection. |
+ */ |
+ public void setFirstRunText(String selection) { |
+ // TODO(pedrosimonetti): confirm that is okay to remove the experimental text |
+// String firstRunText = ContextualSearchFieldTrial.getEnglishExperimentFirstRunText( |
+// selection); |
+// if (firstRunText == null) { |
+// firstRunText = |
+// getContext().getString(R.string.contextual_search_action_bar, selection); |
+// } |
+ String firstRunText = |
+ getContext().getString(R.string.contextual_search_action_bar, selection); |
+ setCentralText(firstRunText); |
+ } |
+ |
+ /** |
* Sets the search context to display in the control. |
* @param selection The portion of the context that represents the user's selection. |
* @param start The portion of the context from its start to the selection. |