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

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

Issue 2791843002: [subresource_filter] Add the toggle to the new experimental UI (Closed)
Patch Set: add TODO and crbug link Created 3 years, 8 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/ui/android/content_settings/subresource_filter_infobar_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/infobars/subresource_filter_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/subresource_filter_infobar.cc b/chrome/browser/ui/android/infobars/subresource_filter_infobar.cc
index e34f8ca1c8c5652de8c60d925b3fa53ba03f0626..88445b134d2df7c667a5d54f8012b189371e0e81 100644
--- a/chrome/browser/ui/android/infobars/subresource_filter_infobar.cc
+++ b/chrome/browser/ui/android/infobars/subresource_filter_infobar.cc
@@ -36,10 +36,13 @@ SubresourceFilterInfoBar::CreateRenderInfoBar(JNIEnv* env) {
env, subresource_filter_delegate->GetExplanationText());
if (subresource_filter_delegate->ShouldShowExperimentalInfobar()) {
+ ScopedJavaLocalRef<jstring> toggle_text = ConvertUTF16ToJavaString(
+ env, subresource_filter_delegate->GetToggleText());
return Java_SubresourceFilterExperimentalInfoBar_show(
env, GetEnumeratedIconId(), message_text, ok_button_text,
- reload_button_text, explanation_message);
+ reload_button_text, toggle_text, explanation_message);
}
+
return Java_SubresourceFilterInfoBar_show(
env, GetEnumeratedIconId(), message_text, ok_button_text,
reload_button_text, explanation_message);
« no previous file with comments | « chrome/browser/ui/android/content_settings/subresource_filter_infobar_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698