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

Issue 937293002: Unify request failure handling in content::UserMediaClientImpl (Closed)

Created:
5 years, 10 months ago by servolk
Modified:
5 years, 10 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unify request failure handling in content::UserMediaClientImpl Unify UserMediaClientImpl::GetUserMediaRequestFailed and UserMediaClientImpl::GetUserMediaRequestTrackStartedFailed and make sure all possible enum values are handled in the switch. BUG=459694 Committed: https://crrev.com/e4af29985a69116a4d37bf7c8130336c63542adc Cr-Commit-Position: refs/heads/master@{#317464}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fixed remaining breaks + updated unit test code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -44 lines) Patch
M content/renderer/media/user_media_client_impl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/media/user_media_client_impl.cc View 1 3 chunks +24 lines, -32 lines 0 comments Download
M content/renderer/media/user_media_client_impl_unittest.cc View 1 1 chunk +1 line, -9 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
servolk
How about this? We could unify the failed request handling in a single method. I've ...
5 years, 10 months ago (2015-02-19 22:48:32 UTC) #2
perkj_chrome
lgtm
5 years, 10 months ago (2015-02-20 11:26:04 UTC) #4
scherkus (not reviewing)
lgtm
5 years, 10 months ago (2015-02-20 17:48:11 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/937293002/1
5 years, 10 months ago (2015-02-20 18:52:53 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_rel_tests_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_rel_tests_recipe/builds/4159)
5 years, 10 months ago (2015-02-20 19:47:45 UTC) #9
mark a. foltz
https://codereview.chromium.org/937293002/diff/1/content/renderer/media/user_media_client_impl.cc File content/renderer/media/user_media_client_impl.cc (right): https://codereview.chromium.org/937293002/diff/1/content/renderer/media/user_media_client_impl.cc#newcode759 content/renderer/media/user_media_client_impl.cc:759: break; s/break/return/ https://codereview.chromium.org/937293002/diff/1/content/renderer/media/user_media_client_impl.cc#newcode762 content/renderer/media/user_media_client_impl.cc:762: break; Ditto
5 years, 10 months ago (2015-02-20 20:00:21 UTC) #10
miu
lgtm, but please change "break" to "return" as mfoltz@ pointed out before committing.
5 years, 10 months ago (2015-02-20 22:35:35 UTC) #11
servolk
On 2015/02/20 22:35:35, miu wrote: > lgtm, but please change "break" to "return" as mfoltz@ ...
5 years, 10 months ago (2015-02-20 23:16:07 UTC) #13
servolk
https://codereview.chromium.org/937293002/diff/1/content/renderer/media/user_media_client_impl.cc File content/renderer/media/user_media_client_impl.cc (right): https://codereview.chromium.org/937293002/diff/1/content/renderer/media/user_media_client_impl.cc#newcode759 content/renderer/media/user_media_client_impl.cc:759: break; On 2015/02/20 20:00:21, mark a. foltz wrote: > ...
5 years, 10 months ago (2015-02-20 23:16:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/937293002/20001
5 years, 10 months ago (2015-02-20 23:20:06 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-21 00:53:08 UTC) #17
commit-bot: I haz the power
5 years, 10 months ago (2015-02-21 00:54:22 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e4af29985a69116a4d37bf7c8130336c63542adc
Cr-Commit-Position: refs/heads/master@{#317464}

Powered by Google App Engine
This is Rietveld 408576698