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

Unified Diff: chrome/browser/ui/android/infobars/translate_compact_infobar.cc

Issue 2873103003: Implements logging in the new compact translate UI. (Closed)
Patch Set: Created 3 years, 7 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/ui/android/infobars/translate_compact_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/translate_compact_infobar.cc b/chrome/browser/ui/android/infobars/translate_compact_infobar.cc
index 0c0cec0f990aae91c8ac3adad27eb5edc2ee2968..bc321296a25880cd972020bf0c2716a3bf1ba71f 100644
--- a/chrome/browser/ui/android/infobars/translate_compact_infobar.cc
+++ b/chrome/browser/ui/android/infobars/translate_compact_infobar.cc
@@ -43,6 +43,8 @@ ScopedJavaLocalRef<jobject> TranslateCompactInfoBar::CreateRenderInfoBar(
TranslateUtils::GetJavaLanguages(env, delegate);
base::android::ScopedJavaLocalRef<jobjectArray> java_codes =
TranslateUtils::GetJavaLanguageCodes(env, delegate);
+ base::android::ScopedJavaLocalRef<jintArray> java_hash_codes =
+ TranslateUtils::GetJavaLanguageHashCodes(env, delegate);
ScopedJavaLocalRef<jstring> source_language_code =
base::android::ConvertUTF8ToJavaString(
@@ -54,7 +56,8 @@ ScopedJavaLocalRef<jobject> TranslateCompactInfoBar::CreateRenderInfoBar(
return Java_TranslateCompactInfoBar_create(
env, delegate->translate_step(), source_language_code,
target_language_code, delegate->ShouldAlwaysTranslate(),
- delegate->triggered_from_menu(), java_languages, java_codes);
+ delegate->triggered_from_menu(), java_languages, java_codes,
+ java_hash_codes);
}
void TranslateCompactInfoBar::ProcessButton(int action) {

Powered by Google App Engine
This is Rietveld 408576698