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

Issue 2330243002: Add CastMediaBlocker and BrowserTest (Closed)

Created:
4 years, 3 months ago by derekjchow1
Modified:
4 years, 3 months ago
Reviewers:
byungchul, halliwell
CC:
chromium-reviews, alokp+watch_chromium.org, lcwu+watch_chromium.org, halliwell+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add CastMediaBlocker and BrowserTest CastMediaBlocker is a class which can prevent media from being played on a web page. BUG=NONE TEST=ChromecastShellMediaBlockingBrowserTest Committed: https://crrev.com/502bcc946bd12e907572f8b22ef4a0abbc8190d0 Cr-Commit-Position: refs/heads/master@{#418897}

Patch Set 1 #

Patch Set 2 : Correct comment #

Total comments: 2

Patch Set 3 : State machine #

Total comments: 4

Patch Set 4 : Fix state transition. Update commit message. #

Total comments: 4

Patch Set 5 : Use if-else #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -0 lines) Patch
M chromecast/browser/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
A chromecast/browser/cast_media_blocker.h View 1 2 3 1 chunk +62 lines, -0 lines 0 comments Download
A chromecast/browser/cast_media_blocker.cc View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M chromecast/browser/test/chromecast_browser_test_helper.h View 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/browser/test/chromecast_browser_test_helper_default.cc View 3 chunks +7 lines, -0 lines 0 comments Download
A chromecast/browser/test/chromecast_shell_media_blocking_browser_test.cc View 1 chunk +95 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (13 generated)
derekjchow1
Will send the internal CL for review soon.
4 years, 3 months ago (2016-09-12 22:38:28 UTC) #2
derekjchow1
+Byungchul
4 years, 3 months ago (2016-09-12 23:25:52 UTC) #4
byungchul
https://codereview.chromium.org/2330243002/diff/20001/chromecast/browser/cast_media_blocker.h File chromecast/browser/cast_media_blocker.h (right): https://codereview.chromium.org/2330243002/diff/20001/chromecast/browser/cast_media_blocker.h#newcode47 chromecast/browser/cast_media_blocker.h:47: // Whether or not this web app should try ...
4 years, 3 months ago (2016-09-12 23:32:59 UTC) #7
derekjchow1
https://codereview.chromium.org/2330243002/diff/20001/chromecast/browser/cast_media_blocker.h File chromecast/browser/cast_media_blocker.h (right): https://codereview.chromium.org/2330243002/diff/20001/chromecast/browser/cast_media_blocker.h#newcode47 chromecast/browser/cast_media_blocker.h:47: // Whether or not this web app should try ...
4 years, 3 months ago (2016-09-13 17:36:44 UTC) #10
halliwell
Add [Chromecast] to start of commit message. https://codereview.chromium.org/2330243002/diff/40001/chromecast/browser/cast_media_blocker.cc File chromecast/browser/cast_media_blocker.cc (right): https://codereview.chromium.org/2330243002/diff/40001/chromecast/browser/cast_media_blocker.cc#newcode25 chromecast/browser/cast_media_blocker.cc:25: state_ = ...
4 years, 3 months ago (2016-09-13 23:59:47 UTC) #11
derekjchow1
Done to the commit message. https://codereview.chromium.org/2330243002/diff/40001/chromecast/browser/cast_media_blocker.cc File chromecast/browser/cast_media_blocker.cc (right): https://codereview.chromium.org/2330243002/diff/40001/chromecast/browser/cast_media_blocker.cc#newcode25 chromecast/browser/cast_media_blocker.cc:25: state_ = (state_ == ...
4 years, 3 months ago (2016-09-14 00:14:05 UTC) #14
halliwell
On 2016/09/14 00:14:05, derekjchow1 wrote: > Done to the commit message. > > https://codereview.chromium.org/2330243002/diff/40001/chromecast/browser/cast_media_blocker.cc > ...
4 years, 3 months ago (2016-09-14 02:15:41 UTC) #17
byungchul
lgtm and nits https://codereview.chromium.org/2330243002/diff/60001/chromecast/browser/cast_media_blocker.cc File chromecast/browser/cast_media_blocker.cc (right): https://codereview.chromium.org/2330243002/diff/60001/chromecast/browser/cast_media_blocker.cc#newcode25 chromecast/browser/cast_media_blocker.cc:25: state_ = (state_ == UNBLOCKED ? ...
4 years, 3 months ago (2016-09-14 02:20:17 UTC) #18
derekjchow1
> Curious: does this test cover all the different edge cases that were found in ...
4 years, 3 months ago (2016-09-14 20:33:13 UTC) #19
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/2330243002/80001
4 years, 3 months ago (2016-09-15 16:50:42 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-15 17:35:41 UTC) #23
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/502bcc946bd12e907572f8b22ef4a0abbc8190d0 Cr-Commit-Position: refs/heads/master@{#418897}
4 years, 3 months ago (2016-09-15 17:38:40 UTC) #25
jbroman
4 years, 3 months ago (2016-09-15 20:16:40 UTC) #26
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/2345053002/ by jbroman@chromium.org.

The reason for reverting is: Test is failing on Cast Linux:
https://build.chromium.org/p/chromium.linux/builders/Cast%20Linux/builds/31563.

Powered by Google App Engine
This is Rietveld 408576698