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

Issue 2886603003: Convert //content/browser/webrtc to be clients of WakeLock mojo service. (Closed)

Created:
3 years, 7 months ago by ke.he
Modified:
3 years, 7 months ago
Reviewers:
emircan, chfremer
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert //content/browser/webrtc to be clients 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. This CL converts clients of PowerSaveBlocker in //content/browser/webrtc BUG=689413 Review-Url: https://codereview.chromium.org/2886603003 Cr-Commit-Position: refs/heads/master@{#473395} Committed: https://chromium.googlesource.com/chromium/src/+/1671f06ee7b3e7ba18d4a8171d3e0c64d95a44b0

Patch Set 1 #

Patch Set 2 : Convert //content/browser/webrtc to be clients of WakeLock mojo service. #

Total comments: 8

Patch Set 3 : Remove *ForTesting() functions, add MockWakeLockService in unittest file instead. #

Total comments: 4

Patch Set 4 : Addressed chfremer@'s review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -38 lines) Patch
M content/browser/webrtc/webrtc_internals.h View 1 2 3 5 chunks +9 lines, -11 lines 0 comments Download
M content/browser/webrtc/webrtc_internals.cc View 1 2 3 4 chunks +38 lines, -16 lines 0 comments Download
M content/browser/webrtc/webrtc_internals_unittest.cc View 1 2 3 4 chunks +41 lines, -11 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 34 (23 generated)
ke.he
Hi, Emircan@, Could you PTAL on this? Thanks.
3 years, 7 months ago (2017-05-17 02:04:10 UTC) #6
chfremer
https://codereview.chromium.org/2886603003/diff/20001/content/browser/webrtc/webrtc_internals.h File content/browser/webrtc/webrtc_internals.h (right): https://codereview.chromium.org/2886603003/diff/20001/content/browser/webrtc/webrtc_internals.h#newcode169 content/browser/webrtc/webrtc_internals.h:169: device::mojom::WakeLockService* GetWakeLock(); nit: Should this method be named GetWakeLockService()? ...
3 years, 7 months ago (2017-05-17 22:51:15 UTC) #13
emircan
https://codereview.chromium.org/2886603003/diff/20001/content/browser/webrtc/webrtc_internals.h File content/browser/webrtc/webrtc_internals.h (right): https://codereview.chromium.org/2886603003/diff/20001/content/browser/webrtc/webrtc_internals.h#newcode111 content/browser/webrtc/webrtc_internals.h:111: bool HasWakeLockForTesting() const { return has_wake_lock_for_testing_; } I think ...
3 years, 7 months ago (2017-05-18 00:09:33 UTC) #14
ke.he
chfremer@, emircan@, Thank you very much! CL is updated, PTAL. https://codereview.chromium.org/2886603003/diff/20001/content/browser/webrtc/webrtc_internals.h File content/browser/webrtc/webrtc_internals.h (right): https://codereview.chromium.org/2886603003/diff/20001/content/browser/webrtc/webrtc_internals.h#newcode111 ...
3 years, 7 months ago (2017-05-18 05:34:15 UTC) #17
chfremer
https://codereview.chromium.org/2886603003/diff/20001/content/browser/webrtc/webrtc_internals.h File content/browser/webrtc/webrtc_internals.h (right): https://codereview.chromium.org/2886603003/diff/20001/content/browser/webrtc/webrtc_internals.h#newcode257 content/browser/webrtc/webrtc_internals.h:257: bool has_wake_lock_for_testing_; On 2017/05/18 05:34:15, ke.he wrote: > On ...
3 years, 7 months ago (2017-05-18 17:48:31 UTC) #20
ke.he
Thanks! CL is updated, PTAL. https://codereview.chromium.org/2886603003/diff/20001/content/browser/webrtc/webrtc_internals.h File content/browser/webrtc/webrtc_internals.h (right): https://codereview.chromium.org/2886603003/diff/20001/content/browser/webrtc/webrtc_internals.h#newcode257 content/browser/webrtc/webrtc_internals.h:257: bool has_wake_lock_for_testing_; On 2017/05/18 ...
3 years, 7 months ago (2017-05-19 03:34:50 UTC) #22
chfremer
PatchSet #4 lgtm Just double-checking, since I couldn't tell from your reply: You chose to ...
3 years, 7 months ago (2017-05-19 16:39:48 UTC) #27
emircan
PS#4 lgtm
3 years, 7 months ago (2017-05-19 17:05:10 UTC) #28
ke.he
On 2017/05/19 16:39:48, chfremer wrote: > PatchSet #4 lgtm > > Just double-checking, since I ...
3 years, 7 months ago (2017-05-20 00:27:37 UTC) #29
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/2886603003/60001
3 years, 7 months ago (2017-05-20 00:28:41 UTC) #31
commit-bot: I haz the power
3 years, 7 months ago (2017-05-20 00:35:12 UTC) #34
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/1671f06ee7b3e7ba18d4a8171d3e...

Powered by Google App Engine
This is Rietveld 408576698