Chromium Code Reviews| Index: chrome/browser/ui/android/website_settings_popup_android.cc |
| diff --git a/chrome/browser/ui/android/website_settings_popup_android.cc b/chrome/browser/ui/android/website_settings_popup_android.cc |
| index 1c0aabb861159c1090f0125fae56ff2fd5730b1c..1e31488a5ad6ee909afdaeca6cc7c09621415aba 100644 |
| --- a/chrome/browser/ui/android/website_settings_popup_android.cc |
| +++ b/chrome/browser/ui/android/website_settings_popup_android.cc |
| @@ -125,17 +125,21 @@ void WebsiteSettingsPopupAndroid::SetIdentityInfo( |
| ScopedJavaLocalRef<jstring> description = ConvertUTF8ToJavaString( |
| env, identity_info.identity_status_description); |
| - Java_WebsiteSettingsPopup_addSection(env, popup_jobject_.obj(), icon_id, |
| - ConvertUTF8ToJavaString(env, headline).obj(), description.obj()); |
| + Java_WebsiteSettingsPopup_addCertificateSection( |
| + env, |
| + popup_jobject_.obj(), |
| + icon_id, |
| + ConvertUTF8ToJavaString(env, headline).obj(), |
| + description.obj()); |
| base::string16 certificate_label = |
| l10n_util::GetStringUTF16(IDS_PAGEINFO_CERT_INFO_BUTTON); |
| if (!certificate_label.empty()) { |
| - Java_WebsiteSettingsPopup_setCertificateViewer(env, popup_jobject_.obj(), |
| + Java_WebsiteSettingsPopup_setCertificateViewer( |
|
David Trainor- moved to gerrit
2014/07/23 17:23:54
Can we just pass the cert label to the function ab
Ian Wen
2014/07/23 18:28:26
Done.
|
| + env, |
| + popup_jobject_.obj(), |
| ConvertUTF16ToJavaString(env, certificate_label).obj()); |
| } |
| - |
| - Java_WebsiteSettingsPopup_addDivider(env, popup_jobject_.obj()); |
| } |
| { |
| @@ -145,10 +149,8 @@ void WebsiteSettingsPopupAndroid::SetIdentityInfo( |
| ScopedJavaLocalRef<jstring> description = ConvertUTF8ToJavaString( |
| env, identity_info.connection_status_description); |
| - Java_WebsiteSettingsPopup_addSection(env, popup_jobject_.obj(), icon_id, |
| - NULL, description.obj()); |
| - |
| - Java_WebsiteSettingsPopup_addDivider(env, popup_jobject_.obj()); |
| + Java_WebsiteSettingsPopup_addDescriptionSection( |
| + env, popup_jobject_.obj(), icon_id, NULL, description.obj()); |
| } |
| Java_WebsiteSettingsPopup_addMoreInfoLink(env, popup_jobject_.obj(), |