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

Issue 2047103003: Mac fullscreen low power: Add unittests (Closed)

Created:
4 years, 6 months ago by ccameron
Modified:
4 years, 6 months ago
Reviewers:
spqchan
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac fullscreen low power: Add unittests Fix a bug in ChildWindowsChanged, discovered by those tests. Move command line check to controller, to make unittests work. Don't allow entering low power mode until the fullscreen low power layer has been valid for 15 frames. This ensures that we won't get flashes of invalid content. BUG=616364 Committed: https://crrev.com/15c873daec19bf34e8b3d4925c9668faaba5e634 Cr-Commit-Position: refs/heads/master@{#399135}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 13

Patch Set 3 : Incorporate review feedback #

Patch Set 4 : Incorporate review feedback #

Total comments: 4

Patch Set 5 : IRF #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -22 lines) Patch
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 2 1 chunk +13 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.mm View 1 2 3 4 3 chunks +18 lines, -12 lines 0 comments Download
A chrome/browser/ui/cocoa/fullscreen_low_power_coordinator_unittest.mm View 1 2 1 chunk +228 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (9 generated)
ccameron
ptal https://codereview.chromium.org/2047103003/diff/20001/chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.mm File chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.mm (right): https://codereview.chromium.org/2047103003/diff/20001/chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.mm#newcode130 chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.mm:130: EnterOrExitLowPowerModeIfNeeded(); Oops -- I didn't notice this bug ...
4 years, 6 months ago (2016-06-08 03:47:18 UTC) #3
spqchan
https://codereview.chromium.org/2047103003/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right): https://codereview.chromium.org/2047103003/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode1199 chrome/browser/ui/cocoa/browser_window_controller_private.mm:1199: static bool fullscreen_low_power_enabled_at_command_line = Why static? Do you mean ...
4 years, 6 months ago (2016-06-08 21:43:59 UTC) #5
ccameron
Thanks, updated! https://codereview.chromium.org/2047103003/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right): https://codereview.chromium.org/2047103003/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode1199 chrome/browser/ui/cocoa/browser_window_controller_private.mm:1199: static bool fullscreen_low_power_enabled_at_command_line = On 2016/06/08 21:43:58, ...
4 years, 6 months ago (2016-06-09 20:47:09 UTC) #6
spqchan
LGTM with a couple of nits https://codereview.chromium.org/2047103003/diff/60001/chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.mm File chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.mm (right): https://codereview.chromium.org/2047103003/diff/60001/chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.mm#newcode7 chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.mm:7: namespace { empty ...
4 years, 6 months ago (2016-06-09 21:09:43 UTC) #7
ccameron
Thanks! https://codereview.chromium.org/2047103003/diff/60001/chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.mm File chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.mm (right): https://codereview.chromium.org/2047103003/diff/60001/chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.mm#newcode7 chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.mm:7: namespace { On 2016/06/09 21:09:43, spqchan wrote: > ...
4 years, 6 months ago (2016-06-09 22:35:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047103003/80001
4 years, 6 months ago (2016-06-09 22:36:08 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) mac_chromium_gn_rel on ...
4 years, 6 months ago (2016-06-10 00:36:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047103003/80001
4 years, 6 months ago (2016-06-10 08:22:50 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-10 08:26:38 UTC) #17
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-10 08:26:43 UTC) #18
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 08:28:03 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/15c873daec19bf34e8b3d4925c9668faaba5e634
Cr-Commit-Position: refs/heads/master@{#399135}

Powered by Google App Engine
This is Rietveld 408576698