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

Issue 30593007: Implements basic listing of USB drives for windows. (Closed)

Created:
7 years, 2 months ago by Drew Haven
Modified:
6 years, 10 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, stephenlin1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Implements basic listing of USB drives for windows. BUG=310328 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247892

Patch Set 1 #

Patch Set 2 : Removes a few unnecessary lines. #

Total comments: 2

Patch Set 3 : Simplifies code to use helper function. #

Patch Set 4 : Simplifies code to use helper function. #

Patch Set 5 : Modifies to use the Win32 API. #

Patch Set 6 : Reformats to remove c-style variable declaration. #

Total comments: 28

Patch Set 7 : Cleans up code based on review feedback. #

Total comments: 15

Patch Set 8 : Cleans up based on more review feedback. #

Patch Set 9 : Updates scoped_ptr initializations to be more consistent in typing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -3 lines) Patch
M chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc View 1 2 3 4 5 6 7 8 1 chunk +190 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Drew Haven
Carlos, Could you either take a look at this CL or direct it to someone ...
7 years, 2 months ago (2013-10-22 22:37:51 UTC) #1
cpu_(ooo_6.6-7.5)
Do we need WMI to be able to enumerate? WMI is kind of heavy handed. ...
7 years, 2 months ago (2013-10-23 20:17:52 UTC) #2
Drew Haven
On 2013/10/23 20:17:52, cpu wrote: > Do we need WMI to be able to enumerate? ...
7 years, 2 months ago (2013-10-23 20:54:42 UTC) #3
cpu_(ooo_6.6-7.5)
you want to list the volumes or the drives? http://msdn.microsoft.com/en-us/library/aa364972%28VS.85%29.aspx http://msdn.microsoft.com/en-us/library/aa364975(v=vs.85).aspx then plus this http://msdn.microsoft.com/en-us/library/windows/desktop/aa364939(v=vs.85).aspx ...
7 years, 2 months ago (2013-10-24 00:55:07 UTC) #4
Drew Haven
On 2013/10/24 00:55:07, cpu wrote: > you want to list the volumes or the drives? ...
7 years, 2 months ago (2013-10-24 01:08:06 UTC) #5
Drew Haven
I updated to use the helper function as requested. I've had a lot of trouble ...
7 years, 2 months ago (2013-10-24 21:25:55 UTC) #6
Drew Haven
On 2013/10/24 21:25:55, Drew Haven wrote: > I updated to use the helper function as ...
7 years, 1 month ago (2013-11-07 00:17:27 UTC) #7
Drew Haven
I figured out how to get this to work with the Win32 API. The key ...
6 years, 11 months ago (2014-01-15 00:27:09 UTC) #8
cpu_(ooo_6.6-7.5)
so you want a review now? My top level comment is to format the code ...
6 years, 11 months ago (2014-01-17 22:04:36 UTC) #9
Drew Haven
On 2014/01/17 22:04:36, cpu wrote: > so you want a review now? > > My ...
6 years, 11 months ago (2014-01-17 22:15:44 UTC) #10
Drew Haven
On 2014/01/17 22:15:44, Drew Haven wrote: > On 2014/01/17 22:04:36, cpu wrote: > > so ...
6 years, 11 months ago (2014-01-17 23:52:51 UTC) #11
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/30593007/diff/220001/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc File chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc (right): https://codereview.chromium.org/30593007/diff/220001/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc#newcode16 chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc:16: namespace { not a fan of the anonymous namespace ...
6 years, 11 months ago (2014-01-18 03:14:39 UTC) #12
Drew Haven
Okay, I did a lot of comment. I was so caught up in the windows ...
6 years, 11 months ago (2014-01-23 02:48:13 UTC) #13
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/30593007/diff/270001/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc File chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc (right): https://codereview.chromium.org/30593007/diff/270001/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc#newcode35 chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc:35: I think the usage is incorrect, scoped_ptr will call ...
6 years, 11 months ago (2014-01-23 22:46:31 UTC) #14
Drew Haven
Sorry about forgetting to follow through on the periods. I think I got everything taken ...
6 years, 11 months ago (2014-01-23 23:58:51 UTC) #15
cpu_(ooo_6.6-7.5)
Looking good now. https://codereview.chromium.org/30593007/diff/270001/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc File chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc (right): https://codereview.chromium.org/30593007/diff/270001/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc#newcode98 chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc:98: scoped_ptr<char[]> output_buf(new char[1024]); Ok, then the ...
6 years, 11 months ago (2014-01-24 20:37:50 UTC) #16
Drew Haven
I put in a rather long winded explanation about the pointer types. I really am ...
6 years, 11 months ago (2014-01-27 20:11:17 UTC) #17
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/30593007/diff/270001/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc File chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc (right): https://codereview.chromium.org/30593007/diff/270001/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc#newcode98 chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc:98: scoped_ptr<char[]> output_buf(new char[1024]); Yeah I think the smart pointer ...
6 years, 11 months ago (2014-01-28 00:58:49 UTC) #18
Drew Haven
On 2014/01/28 00:58:49, cpu wrote: > https://codereview.chromium.org/30593007/diff/270001/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc > File > chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc > (right): > > ...
6 years, 10 months ago (2014-01-28 18:40:31 UTC) #19
cpu_(ooo_6.6-7.5)
lgtm
6 years, 10 months ago (2014-01-29 22:14:17 UTC) #20
Drew Haven
On 2014/01/29 22:14:17, cpu wrote: > lgtm Thanks for the review. I learned something. :)
6 years, 10 months ago (2014-01-29 23:12:16 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/30593007/370001
6 years, 10 months ago (2014-01-29 23:14:11 UTC) #22
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 03:03:40 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/30593007/370001
6 years, 10 months ago (2014-01-30 03:08:49 UTC) #24
commit-bot: I haz the power
6 years, 10 months ago (2014-01-30 08:15:45 UTC) #25
Message was sent while issue was closed.
Change committed as 247892

Powered by Google App Engine
This is Rietveld 408576698