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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller_private.mm

Issue 2059863004: Mac video: Enable fullscreen low power mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_controller_private.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
index 1c9c69e72106d753329d9b5b305f05c81ced564f..7a79c2d42937933878cdfc4b4815f2a843fc3d72 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
@@ -1196,10 +1196,10 @@ - (NSArray*)customWindowsToEnterFullScreenForWindow:(NSWindow*)window {
return nil;
NSWindow* lowPowerWindow = nil;
- static const bool fullscreen_low_power_enabled_at_command_line =
+ static const bool fullscreen_low_power_disabled_at_command_line =
base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableFullscreenLowPowerMode);
- if (fullscreen_low_power_enabled_at_command_line) {
+ switches::kDisableFullscreenLowPowerMode);
+ if (!fullscreen_low_power_disabled_at_command_line) {
WebContents* webContents = [self webContents];
if (webContents && webContents->GetRenderWidgetHostView()) {
fullscreenLowPowerCoordinator_.reset(
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698