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

Issue 23571007: Fail gracefully when libusb_init fails (Closed)

Created:
7 years, 3 months ago by Bei Zhang
Modified:
7 years, 3 months ago
Reviewers:
xiyuan
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@usb-safe-exit
Visibility:
Public.

Description

Fail gracefully when libusb_init fails BUG=280668 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221508

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixes #

Patch Set 3 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -9 lines) Patch
M chrome/browser/extensions/api/usb/usb_api.cc View 4 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/usb/usb_context.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/usb/usb_context.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/usb/usb_context_unittest.cc View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/usb/usb_service.h View 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/usb/usb_service.cc View 1 2 chunks +15 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Bei Zhang
Hi Xiyuan, Please review. Thanks, Bei
7 years, 3 months ago (2013-09-04 18:43:36 UTC) #1
xiyuan
LGTM Thank you for fixing this. You might still need an extensions OWNER to stamp ...
7 years, 3 months ago (2013-09-04 20:22:22 UTC) #2
Bei Zhang
https://codereview.chromium.org/23571007/diff/1/chrome/browser/usb/usb_service.cc File chrome/browser/usb/usb_service.cc (right): https://codereview.chromium.org/23571007/diff/1/chrome/browser/usb/usb_service.cc#newcode87 chrome/browser/usb/usb_service.cc:87: if (!context) I see. There's chance that context is ...
7 years, 3 months ago (2013-09-04 21:04:58 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ikarienator@chromium.org/23571007/5001
7 years, 3 months ago (2013-09-04 22:51:19 UTC) #4
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/api/usb/usb_api.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-04 22:51:22 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ikarienator@chromium.org/23571007/16001
7 years, 3 months ago (2013-09-05 17:14:15 UTC) #6
commit-bot: I haz the power
7 years, 3 months ago (2013-09-05 20:43:41 UTC) #7
Message was sent while issue was closed.
Change committed as 221508

Powered by Google App Engine
This is Rietveld 408576698