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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 801053003: Never display unauthorized plugin info bar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: can remove more stuff 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/chrome_content_renderer_client.cc
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
index a3a7bd3f712cce62d2b18adb82a925865db86ef0..5d26d12763a2e968b51c512e0fa9d461faac508c 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -866,19 +866,13 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin(
l10n_util::GetStringFUTF16(IDS_PLUGIN_NOT_AUTHORIZED, group_name),
GURL());
placeholder->set_allow_loading(true);
- // Check to see if old infobar should be displayed.
- std::string trial_group =
- base::FieldTrialList::FindFullName("UnauthorizedPluginInfoBar");
- if (plugin.type != content::WebPluginInfo::PLUGIN_TYPE_NPAPI ||
- trial_group == "Enabled") {
+ if (plugin.type != content::WebPluginInfo::PLUGIN_TYPE_NPAPI) {
render_frame->Send(new ChromeViewHostMsg_BlockedUnauthorizedPlugin(
render_frame->GetRoutingID(),
group_name,
identifier));
- } else {
- // Send IPC for showing blocked plugins page action.
- observer->DidBlockContentType(content_type, group_name);
}
+ observer->DidBlockContentType(content_type, group_name);
break;
}
case ChromeViewHostMsg_GetPluginInfo_Status::kClickToPlay: {

Powered by Google App Engine
This is Rietveld 408576698