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

Issue 329483002: [fsp] Group arguments for API methods and events in dictionaries. (Closed)

Created:
6 years, 6 months ago by mtomasz
Modified:
6 years, 6 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

[fsp] Group arguments for API methods and events in dictionaries. By moving the options to a list, we can add more fields in the future without breaking backward compatibility. This CL is the first part of the cleanup. Arguments for callbacks will be refactored separately. TEST=unit_tests, browser_tests: *FileSystemProvider* BUG=373165 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276367

Patch Set 1 #

Total comments: 2

Patch Set 2 : Cleaned up. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+378 lines, -335 lines) Patch
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc View 4 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/close_file.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/close_file_unittest.cc View 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/get_metadata.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/get_metadata_unittest.cc View 1 chunk +9 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/open_file.cc View 1 chunk +11 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/open_file_unittest.cc View 1 chunk +9 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/operation.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/operation.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/read_directory.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/read_directory_unittest.cc View 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/read_file.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/read_file_unittest.cc View 1 chunk +9 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/unmount.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/unmount_unittest.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/file_system_provider.idl View 8 chunks +64 lines, -20 lines 0 comments Download
M chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js View 3 chunks +30 lines, -47 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js View 1 4 chunks +49 lines, -56 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/get_metadata/test.js View 2 chunks +28 lines, -26 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/mount/test.js View 6 chunks +9 lines, -12 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/read_directory/test.js View 3 chunks +36 lines, -35 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js View 5 chunks +52 lines, -59 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/unmount/test.js View 4 chunks +23 lines, -19 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
mtomasz
@benwells: PTAL at IDL, @kinaba: PTAL at the rest. Note, that field names are now ...
6 years, 6 months ago (2014-06-10 04:14:43 UTC) #1
kinaba
lgtm for the code. Defer the judgement to benwells@ if the idea itself is ok ...
6 years, 6 months ago (2014-06-10 07:38:09 UTC) #2
benwells
+kalman whose API design sensibilities are better than mine. I'm still pondering my response. My ...
6 years, 6 months ago (2014-06-10 07:53:11 UTC) #3
mtomasz
On 2014/06/10 07:53:11, benwells wrote: > +kalman whose API design sensibilities are better than mine. ...
6 years, 6 months ago (2014-06-10 07:56:02 UTC) #4
benwells
On 2014/06/10 07:56:02, mtomasz wrote: > On 2014/06/10 07:53:11, benwells wrote: > > +kalman whose ...
6 years, 6 months ago (2014-06-10 08:20:26 UTC) #5
mtomasz
On 2014/06/10 08:20:26, benwells wrote: > On 2014/06/10 07:56:02, mtomasz wrote: > > On 2014/06/10 ...
6 years, 6 months ago (2014-06-10 08:26:44 UTC) #6
not at google - send to devlin
yep, long argument lists == bad, so for consistency make all argument lists objects. I ...
6 years, 6 months ago (2014-06-10 18:31:30 UTC) #7
mtomasz
https://codereview.chromium.org/329483002/diff/1/chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js File chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js (right): https://codereview.chromium.org/329483002/diff/1/chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js#newcode167 chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js:167: console.error('*****'); On 2014/06/10 07:38:09, kinaba wrote: > :) Oops! ...
6 years, 6 months ago (2014-06-11 00:51:57 UTC) #8
benwells
ok, lgtm then :)
6 years, 6 months ago (2014-06-11 00:52:35 UTC) #9
mtomasz
On 2014/06/11 00:52:35, benwells wrote: > ok, lgtm then :) yay!
6 years, 6 months ago (2014-06-11 01:26:40 UTC) #10
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 6 months ago (2014-06-11 01:26:44 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/329483002/20001
6 years, 6 months ago (2014-06-11 01:28:14 UTC) #12
commit-bot: I haz the power
6 years, 6 months ago (2014-06-11 12:28:29 UTC) #13
Message was sent while issue was closed.
Change committed as 276367

Powered by Google App Engine
This is Rietveld 408576698