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

Issue 489183003: Log error messages in windows video capture (Closed)

Created:
6 years, 3 months ago by magjed_chromium
Modified:
6 years, 3 months ago
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Log error messages in windows video capture BUG=405016 Committed: https://crrev.com/4c16ae578100980cd2f21a3b2b6070f877e7a3f2 Cr-Commit-Position: refs/heads/master@{#292886}

Patch Set 1 : testing try bot #

Patch Set 2 : the rest of changes #

Patch Set 3 : fixed syntax error #

Total comments: 6

Patch Set 4 : mcasas comments #

Patch Set 5 : removed unnecessary newline #

Total comments: 2

Patch Set 6 : refactor log message to os independendent #

Total comments: 7

Patch Set 7 : tommi@s comments #

Patch Set 8 : fix syntax error for DPLOG_IF #

Patch Set 9 : fix syntax error for DPLOG_IF #2 #

Total comments: 2

Patch Set 10 : mcasas@s comments #

Total comments: 8

Patch Set 11 : replace the 'P's in DPLOG to base::SystemErrorCodeToString(hr) #

Patch Set 12 : fix missing StringPrintf include #

Patch Set 13 : fix incorrect namespace for SystemErrorCodeToString: logging instead of base #

Patch Set 14 : syntax error : missing ')' #

Total comments: 7

Patch Set 15 : braces around if-body #

Patch Set 16 : merge conflicts? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -36 lines) Patch
M content/browser/renderer_host/media/video_capture_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +8 lines, -2 lines 0 comments Download
M media/video/capture/android/video_capture_device_android.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M media/video/capture/linux/video_capture_device_linux.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M media/video/capture/mac/video_capture_device_mac.mm View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M media/video/capture/win/video_capture_device_factory_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +19 lines, -12 lines 0 comments Download
M media/video/capture/win/video_capture_device_mf_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -4 lines 0 comments Download
M media/video/capture/win/video_capture_device_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +24 lines, -15 lines 0 comments Download

Messages

Total messages: 23 (1 generated)
magjed_chromium
Hi, can you review this please?
6 years, 3 months ago (2014-08-26 14:45:57 UTC) #1
mcasas
mcasas@chromium.org changed reviewers: + mcasas@chromium.org
6 years, 3 months ago (2014-08-26 15:38:19 UTC) #2
mcasas
Almost there, note that sometimes GetLastSystemErrorCode() will return: The operation completed successfully. (0x0) https://codereview.chromium.org/489183003/diff/40001/media/video/capture/win/video_capture_device_mf_win.cc File ...
6 years, 3 months ago (2014-08-26 15:38:19 UTC) #3
magjed_chromium
https://codereview.chromium.org/489183003/diff/40001/media/video/capture/win/video_capture_device_mf_win.cc File media/video/capture/win/video_capture_device_mf_win.cc (right): https://codereview.chromium.org/489183003/diff/40001/media/video/capture/win/video_capture_device_mf_win.cc#newcode339 media/video/capture/win/video_capture_device_mf_win.cc:339: DPLOG(ERROR) << log_msg; On 2014/08/26 15:38:18, mcasas wrote: > ...
6 years, 3 months ago (2014-08-26 17:20:29 UTC) #4
magjed_chromium
magjed@chromium.org changed reviewers: + perkj@chromium.org
6 years, 3 months ago (2014-08-27 08:54:32 UTC) #5
magjed_chromium
Per, can you please take a look?
6 years, 3 months ago (2014-08-27 08:54:32 UTC) #6
perkj_chrome
https://codereview.chromium.org/489183003/diff/80001/media/video/capture/win/video_capture_device_win.cc File media/video/capture/win/video_capture_device_win.cc (right): https://codereview.chromium.org/489183003/diff/80001/media/video/capture/win/video_capture_device_win.cc#newcode563 media/video/capture/win/video_capture_device_win.cc:563: client_->OnError(log_msg); mcasas - you suggested we should move the ...
6 years, 3 months ago (2014-08-27 10:45:49 UTC) #7
mcasas
https://codereview.chromium.org/489183003/diff/80001/media/video/capture/win/video_capture_device_win.cc File media/video/capture/win/video_capture_device_win.cc (right): https://codereview.chromium.org/489183003/diff/80001/media/video/capture/win/video_capture_device_win.cc#newcode563 media/video/capture/win/video_capture_device_win.cc:563: client_->OnError(log_msg); On 2014/08/27 10:45:48, perkj wrote: > mcasas - ...
6 years, 3 months ago (2014-08-27 11:34:09 UTC) #8
magjed_chromium
magjed@chromium.org changed reviewers: + tommi@chromium.org
6 years, 3 months ago (2014-08-27 14:38:54 UTC) #9
magjed_chromium
PTAL
6 years, 3 months ago (2014-08-27 14:38:55 UTC) #10
tommi (sloooow) - chröme
https://codereview.chromium.org/489183003/diff/100001/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): https://codereview.chromium.org/489183003/diff/100001/content/browser/renderer_host/media/video_capture_controller.cc#newcode523 content/browser/renderer_host/media/video_capture_controller.cc:523: DLOG(ERROR) << log_message; log_message could be a std::ostringstream which ...
6 years, 3 months ago (2014-08-27 14:46:18 UTC) #11
magjed_chromium
https://codereview.chromium.org/489183003/diff/100001/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): https://codereview.chromium.org/489183003/diff/100001/content/browser/renderer_host/media/video_capture_controller.cc#newcode523 content/browser/renderer_host/media/video_capture_controller.cc:523: DLOG(ERROR) << log_message; On 2014/08/27 14:46:18, tommi wrote: > ...
6 years, 3 months ago (2014-08-27 17:03:28 UTC) #12
mcasas
LGTM with nit. https://codereview.chromium.org/489183003/diff/160001/media/video/capture/win/video_capture_device_win.cc File media/video/capture/win/video_capture_device_win.cc (right): https://codereview.chromium.org/489183003/diff/160001/media/video/capture/win/video_capture_device_win.cc#newcode449 media/video/capture/win/video_capture_device_win.cc:449: DPLOG_IF(ERROR, FAILED(hr)) << "IAMVideoControl Interface NOT ...
6 years, 3 months ago (2014-08-27 21:24:21 UTC) #13
tommi (sloooow) - chröme
https://codereview.chromium.org/489183003/diff/180001/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): https://codereview.chromium.org/489183003/diff/180001/content/browser/renderer_host/media/video_capture_controller.cc#newcode523 content/browser/renderer_host/media/video_capture_controller.cc:523: << ", OS message: " << last_error_message; exchange last_error_message ...
6 years, 3 months ago (2014-08-28 08:48:46 UTC) #14
magjed_chromium
perkj, tommi: PTAL https://codereview.chromium.org/489183003/diff/160001/media/video/capture/win/video_capture_device_win.cc File media/video/capture/win/video_capture_device_win.cc (right): https://codereview.chromium.org/489183003/diff/160001/media/video/capture/win/video_capture_device_win.cc#newcode449 media/video/capture/win/video_capture_device_win.cc:449: DPLOG_IF(ERROR, FAILED(hr)) << "IAMVideoControl Interface NOT ...
6 years, 3 months ago (2014-08-28 14:50:39 UTC) #15
perkj_chrome
lgtm with a small request. https://codereview.chromium.org/489183003/diff/260001/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): https://codereview.chromium.org/489183003/diff/260001/content/browser/renderer_host/media/video_capture_controller.cc#newcode521 content/browser/renderer_host/media/video_capture_controller.cc:521: "Error on video capture: ...
6 years, 3 months ago (2014-08-29 14:17:34 UTC) #16
tommi (sloooow) - chröme
lgtm % whatever nits might remain. https://codereview.chromium.org/489183003/diff/260001/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): https://codereview.chromium.org/489183003/diff/260001/content/browser/renderer_host/media/video_capture_controller.cc#newcode521 content/browser/renderer_host/media/video_capture_controller.cc:521: "Error on video ...
6 years, 3 months ago (2014-08-30 17:39:33 UTC) #17
magjed_chromium
Regarding including error codes: In OS_WIN, the error code is already included in SystemErrorCodeToString. In ...
6 years, 3 months ago (2014-09-01 08:34:14 UTC) #18
tommi (sloooow) - chröme
On 2014/09/01 08:34:14, magjed wrote: > Regarding including error codes: > In OS_WIN, the error ...
6 years, 3 months ago (2014-09-01 12:04:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/magjed@chromium.org/489183003/300001
6 years, 3 months ago (2014-09-01 16:19:16 UTC) #21
commit-bot: I haz the power
Committed patchset #16 (id:300001) as b5236bc27861bd8e09656e7d6c88fc90f22dd764
6 years, 3 months ago (2014-09-01 17:15:00 UTC) #22
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:17:18 UTC) #23
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/4c16ae578100980cd2f21a3b2b6070f877e7a3f2
Cr-Commit-Position: refs/heads/master@{#292886}

Powered by Google App Engine
This is Rietveld 408576698