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

Issue 2388313004: Flash: Use better APIs for preventing sleep (Closed)

Created:
4 years, 2 months ago by ccameron
Modified:
4 years, 2 months ago
Reviewers:
bbudge, Nico, erikchen, scottmg
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Flash: Use better APIs for preventing sleep The API that this was using on Mac has been deprecated, and is preventing us from upgrading our SDK version. We have a cross-platform sleep-preventation API. Use that instead. The Flash API for preventing power is a bit idiosyncratic in that it doesn't create and destroy power blockers, but rather says "please don't go to sleep for a while", where "a while" is not defined. Empirically, twitch.tv called this method every 10 seconds. Use a timeout of 45 seconds to be safe. BUG=650797 Committed: https://crrev.com/04c2bac53d96749f85f9046d9923810df58d41c1 Cr-Commit-Position: refs/heads/master@{#425843}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use DelayTimer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -13 lines) Patch
M chrome/browser/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/pepper/pepper_flash_browser_host.h View 1 4 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/pepper/pepper_flash_browser_host.cc View 1 3 chunks +19 lines, -13 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (14 generated)
ccameron
ptal
4 years, 2 months ago (2016-10-04 19:33:13 UTC) #4
scottmg
non-owner lgtm
4 years, 2 months ago (2016-10-04 19:42:36 UTC) #6
ccameron
Adding bbudge for pepper OWNER
4 years, 2 months ago (2016-10-04 19:43:43 UTC) #7
erikchen
Actually adding bbudge this time.
4 years, 2 months ago (2016-10-12 23:14:56 UTC) #11
bbudge
https://codereview.chromium.org/2388313004/diff/1/chrome/browser/renderer_host/pepper/pepper_flash_browser_host.cc File chrome/browser/renderer_host/pepper/pepper_flash_browser_host.cc (right): https://codereview.chromium.org/2388313004/diff/1/chrome/browser/renderer_host/pepper/pepper_flash_browser_host.cc#newcode97 chrome/browser/renderer_host/pepper/pepper_flash_browser_host.cc:97: base::TimeDelta::FromSeconds(45)); Since this is a plugin API, it seems ...
4 years, 2 months ago (2016-10-13 19:53:51 UTC) #12
ccameron
Updated ptal. https://codereview.chromium.org/2388313004/diff/1/chrome/browser/renderer_host/pepper/pepper_flash_browser_host.cc File chrome/browser/renderer_host/pepper/pepper_flash_browser_host.cc (right): https://codereview.chromium.org/2388313004/diff/1/chrome/browser/renderer_host/pepper/pepper_flash_browser_host.cc#newcode97 chrome/browser/renderer_host/pepper/pepper_flash_browser_host.cc:97: base::TimeDelta::FromSeconds(45)); On 2016/10/13 19:53:51, bbudge wrote: > ...
4 years, 2 months ago (2016-10-14 21:39:43 UTC) #13
bbudge
lgtm Thank you!
4 years, 2 months ago (2016-10-14 22:39:37 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2388313004/20001
4 years, 2 months ago (2016-10-17 17:08:54 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/282666)
4 years, 2 months ago (2016-10-17 17:17:34 UTC) #19
erikchen
+thakis for OWNER review of chrome.
4 years, 2 months ago (2016-10-17 23:48:21 UTC) #21
Nico
rs-lgtm
4 years, 2 months ago (2016-10-17 23:55:52 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2388313004/20001
4 years, 2 months ago (2016-10-18 00:12:02 UTC) #24
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-18 01:06:52 UTC) #26
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 01:10:34 UTC) #28
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/04c2bac53d96749f85f9046d9923810df58d41c1
Cr-Commit-Position: refs/heads/master@{#425843}

Powered by Google App Engine
This is Rietveld 408576698