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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/omnibox/AutocompleteController.java

Issue 399063002: Remove BaseSearchProvider::set_in_app_list (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 6 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/android/omnibox/autocomplete_controller_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/omnibox/AutocompleteController.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/AutocompleteController.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/AutocompleteController.java
index 2835c612904ac874983f808944c923e87f8e1f31..35d2e8a9b74c9004021a767898e2be236a4b8dda 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/AutocompleteController.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/AutocompleteController.java
@@ -223,6 +223,15 @@ public class AutocompleteController {
}
/**
+ * Use updateMatchDestinationUrlWithQueryFormulationTime instead.
+ */
+ @Deprecated
+ public String updateMatchDestinationUrl(int selectedIndex, long elapsedTimeSinceInputChange) {
+ return updateMatchDestinationUrlWithQueryFormulationTime(selectedIndex,
+ elapsedTimeSinceInputChange);
+ }
+
+ /**
* Updates aqs parameters on the selected match that we will navigate to and returns the
* updated URL. |selected_index| is the position of the selected match and
* |elapsed_time_since_input_change| is the time in ms between the first typed input and match
@@ -235,9 +244,10 @@ public class AutocompleteController {
* @return The url to navigate to for this match with aqs parameter updated, if we are
* making a Google search query.
*/
- public String updateMatchDestinationUrl(int selectedIndex, long elapsedTimeSinceInputChange) {
- return nativeUpdateMatchDestinationURL(mNativeAutocompleteControllerAndroid, selectedIndex,
- elapsedTimeSinceInputChange);
+ public String updateMatchDestinationUrlWithQueryFormulationTime(int selectedIndex,
+ long elapsedTimeSinceInputChange) {
+ return nativeUpdateMatchDestinationURLWithQueryFormulationTime(
+ mNativeAutocompleteControllerAndroid, selectedIndex, elapsedTimeSinceInputChange);
}
/**
@@ -265,8 +275,9 @@ public class AutocompleteController {
boolean focusedFromFakebox);
private native void nativeDeleteSuggestion(long nativeAutocompleteControllerAndroid,
int selectedIndex);
- private native String nativeUpdateMatchDestinationURL(long nativeAutocompleteControllerAndroid,
- int selectedIndex, long elapsedTimeSinceInputChange);
+ private native String nativeUpdateMatchDestinationURLWithQueryFormulationTime(
+ long nativeAutocompleteControllerAndroid, int selectedIndex,
+ long elapsedTimeSinceInputChange);
private native OmniboxSuggestion nativeGetTopSynchronousMatch(
long nativeAutocompleteControllerAndroid, String query);
« no previous file with comments | « no previous file | chrome/browser/android/omnibox/autocomplete_controller_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698