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

Issue 1991593002: Pass SequencedTaskRunner to PowerSaveBlocker for ui/file operations (Closed)

Created:
4 years, 7 months ago by scottmg
Modified:
4 years, 7 months ago
CC:
chromium-reviews, asanka, extensions-reviews_chromium.org, jam, imcheng+watch_chromium.org, jasonroberts+watch_google.com, avayvod+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, loading-reviews_chromium.org, chromium-apps-reviews_chromium.org, xjz+watch_chromium.org, isheriff+watch_chromium.org, miu+watch_chromium.org, Sergey Ulanov
Base URL:
https://chromium.googlesource.com/chromium/src.git@device-power-save-blocker
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass SequencedTaskRunner to PowerSaveBlocker for ui/file operations Beginning of moving PowerSaveBlocker to //device/power_save_blocker. power_save_blocker_factory is a wrapper to pass down the required SequencedTaskRunners. It will stay in content when the rest of the power_save_blocker files move to //device. BUG=612337, 257943, 612563 Committed: https://crrev.com/11c0c210570c67f7b32ebc706102c9e8833cc9a1 Cr-Commit-Position: refs/heads/master@{#395727}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : missing files #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : android dbg #

Patch Set 9 : android dbg 2 #

Patch Set 10 : . #

Total comments: 4

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -140 lines) Patch
M chrome/browser/media/cast_transport_host_filter.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M components/drive/DEPS View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/drive/drive_uploader.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -2 lines 0 comments Download
M content/browser/devtools/render_frame_devtools_agent_host.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/download/download_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/download/download_request_core.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/loader/DEPS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/power_save_block_resource_throttle.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/media/capture/aura_window_capture_machine.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/media/capture/desktop_capture_device.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/media/media_web_contents_observer.cc View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
M content/browser/media/webrtc/webrtc_internals.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/power_save_blocker_android.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +22 lines, -14 lines 0 comments Download
M content/browser/power_save_blocker_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +24 lines, -13 lines 0 comments Download
A content/browser/power_save_blocker_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +24 lines, -0 lines 0 comments Download
M content/browser/power_save_blocker_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -3 lines 0 comments Download
M content/browser/power_save_blocker_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -7 lines 0 comments Download
M content/browser/power_save_blocker_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -4 lines 0 comments Download
M content/browser/power_save_blocker_ozone.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -5 lines 0 comments Download
M content/browser/power_save_blocker_win.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +24 lines, -17 lines 0 comments Download
M content/browser/power_save_blocker_x11.cc View 1 2 3 4 5 6 7 8 9 10 16 chunks +55 lines, -40 lines 0 comments Download
M content/browser/wake_lock/wake_lock_service_context.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/browser/power_save_blocker.h View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
A content/public/browser/power_save_blocker_factory.h View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
M extensions/browser/api/power/power_api.cc View 1 2 3 4 5 6 3 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (12 generated)
scottmg
sergeyu: chrome/browser/media hashimoto: components/drive nick: content/ asargent: extensions/
4 years, 7 months ago (2016-05-19 23:52:27 UTC) #4
asargent_no_longer_on_chrome
extensions lgtm
4 years, 7 months ago (2016-05-20 00:07:36 UTC) #5
ncarter (slow)
lgtm
4 years, 7 months ago (2016-05-23 17:20:39 UTC) #6
hashimoto
components/drive lgtm https://codereview.chromium.org/1991593002/diff/180001/content/browser/power_save_blocker_factory.cc File content/browser/power_save_blocker_factory.cc (right): https://codereview.chromium.org/1991593002/diff/180001/content/browser/power_save_blocker_factory.cc#newcode18 content/browser/power_save_blocker_factory.cc:18: BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); How about using BrowserThread::GetBlockingPool()->GetSequencedTaskRunner() instead of ...
4 years, 7 months ago (2016-05-24 06:02:43 UTC) #7
scottmg
Thanks. sergeyu is ooo, -> tommi for chrome/browser/media/cast_transport_host_filter.cc https://codereview.chromium.org/1991593002/diff/180001/content/browser/power_save_blocker_factory.cc File content/browser/power_save_blocker_factory.cc (right): https://codereview.chromium.org/1991593002/diff/180001/content/browser/power_save_blocker_factory.cc#newcode18 content/browser/power_save_blocker_factory.cc:18: BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); ...
4 years, 7 months ago (2016-05-24 17:18:04 UTC) #10
tommi (sloooow) - chröme
lgtm for chrome/browser/media/
4 years, 7 months ago (2016-05-24 18:22:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1991593002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1991593002/220001
4 years, 7 months ago (2016-05-24 18:34:06 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/116424)
4 years, 7 months ago (2016-05-24 18:54:56 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1991593002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1991593002/240001
4 years, 7 months ago (2016-05-24 19:31:02 UTC) #19
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 7 months ago (2016-05-24 23:21:04 UTC) #21
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/11c0c210570c67f7b32ebc706102c9e8833cc9a1 Cr-Commit-Position: refs/heads/master@{#395727}
4 years, 7 months ago (2016-05-24 23:22:28 UTC) #23
tasak
On 2016/05/24 23:22:28, commit-bot: I haz the power wrote: > Patchset 13 (id:??) landed as ...
4 years, 7 months ago (2016-05-25 08:43:15 UTC) #24
hajimehoshi
A revert of this CL (patchset #13 id:240001) has been created in https://codereview.chromium.org/2006143006/ by hajimehoshi@chromium.org. ...
4 years, 7 months ago (2016-05-25 09:34:28 UTC) #25
hashimoto
4 years, 7 months ago (2016-05-25 10:17:29 UTC) #26
Message was sent while issue was closed.
Oops, I din't notice that power_save_blocker_x11.cc uses
dbus::ObjectProxy::CallMethod which requires the caller thread to be associated
with a SingleThreadTaskRunner.

This can be fixed by passing a SingleThreadTaskRunner to the implementation, or
by changing it to use dbus::ObjectProxy::CallMethodAndBlock which doesn't
require a SingleThreadTaskRunner.

Powered by Google App Engine
This is Rietveld 408576698