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

Unified Diff: chrome/browser/android/omnibox/autocomplete_controller_android.h

Issue 319813002: Add a method to retrieve the top synchronous suggestion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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/browser/android/omnibox/autocomplete_controller_android.h
diff --git a/chrome/browser/android/omnibox/autocomplete_controller_android.h b/chrome/browser/android/omnibox/autocomplete_controller_android.h
index d961068e7b302c550b47c06a54b3d3c814ff2912..63de5e890cb9e3b02056b6269b58d9b1643e48ec 100644
--- a/chrome/browser/android/omnibox/autocomplete_controller_android.h
+++ b/chrome/browser/android/omnibox/autocomplete_controller_android.h
@@ -67,6 +67,11 @@ class AutocompleteControllerAndroid : public AutocompleteControllerDelegate,
jint selected_index,
jlong elapsed_time_since_input_change);
+ base::android::ScopedJavaLocalRef<jobject> GetTopSynchronousMatch(
+ JNIEnv* env,
+ jobject obj,
+ jstring query);
+
// KeyedService:
virtual void Shutdown() OVERRIDE;
@@ -124,8 +129,9 @@ class AutocompleteControllerAndroid : public AutocompleteControllerDelegate,
// Last input we sent to the autocomplete controller.
AutocompleteInput input_;
- // Whether we're currently inside a call to Classify().
- bool inside_classify_;
+ // Whether we're currently inside a call to Start() that's called
+ // for Classify() or GetTopSynchronousMatch()
+ bool inside_synchronous_start_;
JavaObjectWeakGlobalRef weak_java_autocomplete_controller_android_;
Profile* profile_;

Powered by Google App Engine
This is Rietveld 408576698