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

Unified Diff: chrome/browser/ui/android/toolbar/toolbar_model_android.cc

Issue 2232863002: Remove search::GetSearchTerms since it always returns empty string (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_query_extract
Patch Set: Android Created 4 years, 4 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 | « chrome/browser/search/search.cc ('k') | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/toolbar/toolbar_model_android.cc
diff --git a/chrome/browser/ui/android/toolbar/toolbar_model_android.cc b/chrome/browser/ui/android/toolbar/toolbar_model_android.cc
index c43698fc16e0fa8d2396c63f83a4443c93c8ff31..54a840e10d9411b18ce6df19eb569b116b471dab 100644
--- a/chrome/browser/ui/android/toolbar/toolbar_model_android.cc
+++ b/chrome/browser/ui/android/toolbar/toolbar_model_android.cc
@@ -36,8 +36,8 @@ void ToolbarModelAndroid::Destroy(JNIEnv* env,
ScopedJavaLocalRef<jstring> ToolbarModelAndroid::GetText(
JNIEnv* env,
const JavaParamRef<jobject>& obj) {
- return base::android::ConvertUTF16ToJavaString(env,
- toolbar_model_->GetText());
+ return base::android::ConvertUTF16ToJavaString(
+ env, toolbar_model_->GetFormattedURL(nullptr));
}
content::WebContents* ToolbarModelAndroid::GetActiveWebContents() const {
« no previous file with comments | « chrome/browser/search/search.cc ('k') | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698