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

Issue 2893873002: Convert PowerSaveBlockResourceThrottle to be client of WakeLock mojo service. (Closed)

Created:
3 years, 7 months ago by ke.he
Modified:
3 years, 7 months ago
Reviewers:
jam, Charlie Harrison
CC:
chromium-reviews, loading-reviews_chromium.org, jam, darin-cc_chromium.org, Randy Smith (Not in Mondays), mmenke
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert PowerSaveBlockResourceThrottle to be client of WakeLock mojo service. Wake Lock is a Mojo interface that wraps PowerSaveBlocker. As part of the creation of standalone Device Service, all browser-side clients of PowerSaveBlocker should be converted to be clients of the Wake Lock Mojo interface instead. BUG=689410 TBR=jam@chromium.org, for mechanical changes to //content/browser/BUILD.gn Review-Url: https://codereview.chromium.org/2893873002 Cr-Commit-Position: refs/heads/master@{#473076} Committed: https://chromium.googlesource.com/chromium/src/+/91eabe25b470e6b042b78a333f4bbc62900d2916

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed Charlie's comments. #

Total comments: 2

Patch Set 3 : Convert PowerSaveBlockResourceThrottle to be client of WakeLock mojo service. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -119 lines) Patch
M content/browser/BUILD.gn View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/loader/DEPS View 4 chunks +8 lines, -6 lines 0 comments Download
D content/browser/loader/power_save_block_resource_throttle.h View 1 chunk +0 lines, -53 lines 0 comments Download
D content/browser/loader/power_save_block_resource_throttle.cc View 1 chunk +0 lines, -53 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 3 chunks +4 lines, -5 lines 0 comments Download
A content/browser/loader/wake_lock_resource_throttle.h View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
A content/browser/loader/wake_lock_resource_throttle.cc View 1 1 chunk +70 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (18 generated)
ke.he
Hi, Charlie, Could you PTAL on this, thanks! https://codereview.chromium.org/2893873002/diff/1/content/browser/loader/wake_lock_resource_throttle.cc File content/browser/loader/wake_lock_resource_throttle.cc (right): https://codereview.chromium.org/2893873002/diff/1/content/browser/loader/wake_lock_resource_throttle.cc#newcode49 content/browser/loader/wake_lock_resource_throttle.cc:49: DCHECK_CURRENTLY_ON(BrowserThread::IO); ...
3 years, 7 months ago (2017-05-18 13:40:09 UTC) #6
Charlie Harrison
Hey ke.he this looks reasonable but I'm not thrilled about the design changes to the ...
3 years, 7 months ago (2017-05-18 13:56:42 UTC) #7
ke.he
On 2017/05/18 13:56:42, Charlie Harrison wrote: > Hey ke.he this looks reasonable but I'm not ...
3 years, 7 months ago (2017-05-18 14:06:51 UTC) #8
ke.he
https://codereview.chromium.org/2893873002/diff/1/content/browser/loader/wake_lock_resource_throttle.cc File content/browser/loader/wake_lock_resource_throttle.cc (right): https://codereview.chromium.org/2893873002/diff/1/content/browser/loader/wake_lock_resource_throttle.cc#newcode1 content/browser/loader/wake_lock_resource_throttle.cc:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
3 years, 7 months ago (2017-05-18 14:13:12 UTC) #9
Charlie Harrison
Thanks for clearing up my understanding, I feel a lot better about this. Would you ...
3 years, 7 months ago (2017-05-18 14:46:17 UTC) #10
ke.he
Charlie, thanks for your comments. CL is updated. I'll have a look on the ThrottlingResourceHandlerTest ...
3 years, 7 months ago (2017-05-18 15:35:15 UTC) #11
Charlie Harrison
On 2017/05/18 15:35:15, ke.he wrote: > Charlie, thanks for your comments. CL is updated. > ...
3 years, 7 months ago (2017-05-18 15:47:14 UTC) #14
ke.he
On 2017/05/18 15:47:14, Charlie Harrison wrote: > On 2017/05/18 15:35:15, ke.he wrote: > > Charlie, ...
3 years, 7 months ago (2017-05-18 16:05:27 UTC) #15
Charlie Harrison
LGTM https://codereview.chromium.org/2893873002/diff/20001/content/browser/loader/wake_lock_resource_throttle.h File content/browser/loader/wake_lock_resource_throttle.h (right): https://codereview.chromium.org/2893873002/diff/20001/content/browser/loader/wake_lock_resource_throttle.h#newcode36 content/browser/loader/wake_lock_resource_throttle.h:36: // Destruction of wake_lock_ will trigger Suggested rephrasing: ...
3 years, 7 months ago (2017-05-18 16:43:50 UTC) #16
ke.he
https://codereview.chromium.org/2893873002/diff/20001/content/browser/loader/wake_lock_resource_throttle.h File content/browser/loader/wake_lock_resource_throttle.h (right): https://codereview.chromium.org/2893873002/diff/20001/content/browser/loader/wake_lock_resource_throttle.h#newcode36 content/browser/loader/wake_lock_resource_throttle.h:36: // Destruction of wake_lock_ will trigger On 2017/05/18 16:43:49, ...
3 years, 7 months ago (2017-05-19 03:35: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/2893873002/40001
3 years, 7 months ago (2017-05-19 03:56:42 UTC) #27
commit-bot: I haz the power
3 years, 7 months ago (2017-05-19 04:02:34 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/91eabe25b470e6b042b78a333f4b...

Powered by Google App Engine
This is Rietveld 408576698