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

Unified Diff: chrome/browser/ui/page_info/page_info_ui.cc

Issue 2884813003: [subresource_filter] Add custom strings/behavior on Desktop Page Info (Closed)
Patch Set: add period 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/page_info/page_info_ui.cc
diff --git a/chrome/browser/ui/page_info/page_info_ui.cc b/chrome/browser/ui/page_info/page_info_ui.cc
index 401b5cd12f5307c98b44dc619dbf3c8189db364e..5d4c6b539265bc5cb745e2506bf70de95ea08771 100644
--- a/chrome/browser/ui/page_info/page_info_ui.cc
+++ b/chrome/browser/ui/page_info/page_info_ui.cc
@@ -288,6 +288,10 @@ base::string16 PageInfoUI::PermissionActionToUIString(
NOTREACHED();
return base::string16();
}
+ // The subresource filter permission uses the user managed strings
+ // (i.e. Allow / Block).
+ if (type == CONTENT_SETTINGS_TYPE_SUBRESOURCE_FILTER)
+ button_text_ids = kPermissionButtonTextIDUserManaged;
int button_text_id = button_text_ids[effective_setting];
DCHECK_NE(button_text_id, kInvalidResourceID);
return l10n_util::GetStringUTF16(button_text_id);
« no previous file with comments | « no previous file | chrome/browser/ui/page_info/permission_menu_model.cc » ('j') | components/page_info_strings.grdp » ('J')

Powered by Google App Engine
This is Rietveld 408576698