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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 876803005: Plugin Power Saver: --enable-plugin-power-saver only overrides ALLOW. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c76c358083c22d1361b6a5de0106900036d48a03..b09b82009051284f0807dc031997b1ade05edd1f 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -702,7 +702,8 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin(
}
#if defined(ENABLE_PLUGINS)
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ if (status_value == ChromeViewHostMsg_GetPluginInfo_Status::kAllowed &&
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnablePluginPowerSaver)) {
status_value =
ChromeViewHostMsg_GetPluginInfo_Status::kPlayImportantContent;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698