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

Unified Diff: chrome/renderer/content_settings_observer.cc

Issue 777103002: Add the names of plugins to the blocked plugin bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make mergeable by reusing an existing string with existing translation Created 6 years 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/renderer/content_settings_observer.cc
diff --git a/chrome/renderer/content_settings_observer.cc b/chrome/renderer/content_settings_observer.cc
index 7c282fbd443324f6d202ca3eb19bded649931cdf..610a04a0e7c7864d93c18fb933a9a245256b12b8 100644
--- a/chrome/renderer/content_settings_observer.cc
+++ b/chrome/renderer/content_settings_observer.cc
@@ -202,7 +202,18 @@ void ContentSettingsObserver::DidBlockContentType(
ContentSettingsType settings_type) {
if (!content_blocked_[settings_type]) {
content_blocked_[settings_type] = true;
- Send(new ChromeViewHostMsg_ContentBlocked(routing_id(), settings_type));
+ Send(new ChromeViewHostMsg_ContentBlocked(routing_id(), settings_type,
+ base::string16()));
+ }
+}
+
+void ContentSettingsObserver::DidBlockContentType(
+ ContentSettingsType settings_type,
+ const base::string16& details) {
+ if (!content_blocked_[settings_type]) {
+ content_blocked_[settings_type] = true;
+ Send(new ChromeViewHostMsg_ContentBlocked(routing_id(), settings_type,
+ details));
}
}

Powered by Google App Engine
This is Rietveld 408576698