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

Issue 335753004: [fsp] Cleanup handling errors for operation requests. (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
Project:
chromium
Visibility:
Public.

Description

[fsp] Cleanup handling errors for operation requests. This CL removes redundant internal functions which are identical, and replaces them with one. Moreover, the new general purpose error API function, passes now the entire value to the request manager. This is because, very soon, we are going to pass extra information with every error and success responses and we want to have access to them in the RequestManager. NOTRY=true TEST=unit_tests, browser_tests: *FileSystemProvider* BUG=373165, 384201 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277929

Patch Set 1 #

Patch Set 2 : Rebased. Cleaned up. #

Patch Set 3 : Rebased. #

Patch Set 4 : Updated histograms.xml. #

Patch Set 5 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -241 lines) Patch
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.h View 6 chunks +4 lines, -64 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc View 6 chunks +5 lines, -52 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_system_provider/provider_function.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/close_file.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/close_file.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/close_file_unittest.cc View 3 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/get_metadata.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/get_metadata_unittest.cc View 3 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/open_file.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/open_file.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/open_file_unittest.cc View 3 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/operation.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/read_directory.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/read_directory.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/read_directory_unittest.cc View 3 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/read_file.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/read_file.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/read_file_unittest.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/unmount.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/unmount.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/unmount_unittest.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager.h View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager.cc View 1 2 3 4 3 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager_unittest.cc View 1 2 3 4 8 chunks +26 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_value.h View 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_value.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/file_system_provider_internal.idl View 4 chunks +4 lines, -38 lines 0 comments Download
M chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js View 6 chunks +6 lines, -6 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 4 chunks +7 lines, -6 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 4 chunks +11 lines, -6 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
mtomasz
@benwells: PTAL at IDL. @kinaba: PTAL at C++. This is a mechanical change. Removing redundant ...
6 years, 6 months ago (2014-06-13 03:46:28 UTC) #1
benwells
idl and custom bindings lgtm
6 years, 6 months ago (2014-06-16 03:09:06 UTC) #2
kinaba
lgtm
6 years, 6 months ago (2014-06-16 03:16:16 UTC) #3
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 6 months ago (2014-06-16 03:30:05 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/335753004/20001
6 years, 6 months ago (2014-06-16 03:30:21 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-16 04:05:00 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/22663) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/17041)
6 years, 6 months ago (2014-06-16 04:05:01 UTC) #7
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 6 months ago (2014-06-16 04:25:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/335753004/30001
6 years, 6 months ago (2014-06-16 04:25:59 UTC) #9
mtomasz
@isherman: PTAL at histograms. Thanks.
6 years, 6 months ago (2014-06-16 06:53:06 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-16 07:36:44 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/73841)
6 years, 6 months ago (2014-06-16 07:36:45 UTC) #12
Ilya Sherman
Please run the script to update histograms.xml.
6 years, 6 months ago (2014-06-16 21:06:15 UTC) #13
mtomasz
On 2014/06/16 21:06:15, Ilya Sherman wrote: > Please run the script to update histograms.xml. Done. ...
6 years, 6 months ago (2014-06-17 02:46:38 UTC) #14
Ilya Sherman
histograms lgtm, thanks
6 years, 6 months ago (2014-06-17 03:04:31 UTC) #15
mtomasz
On 2014/06/17 03:04:31, Ilya Sherman wrote: > histograms lgtm, thanks Thanks!
6 years, 6 months ago (2014-06-17 03:04:51 UTC) #16
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 6 months ago (2014-06-17 03:04:57 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/335753004/50001
6 years, 6 months ago (2014-06-17 03:08:08 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-17 09:29:58 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/74161)
6 years, 6 months ago (2014-06-17 09:29:59 UTC) #20
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 6 months ago (2014-06-17 12:12:19 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/335753004/50001
6 years, 6 months ago (2014-06-17 12:13:09 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-17 12:14:26 UTC) #23
commit-bot: I haz the power
Failed to apply patch for extensions/browser/extension_function_histogram_value.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 6 months ago (2014-06-17 12:14:27 UTC) #24
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 6 months ago (2014-06-18 00:40:53 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/335753004/70001
6 years, 6 months ago (2014-06-18 00:42:17 UTC) #26
commit-bot: I haz the power
Change committed as 277929
6 years, 6 months ago (2014-06-18 00:45:00 UTC) #27
please use gerrit instead
This change broke on FileSystemProviderApiTest.GetMetadata, FileSystemProviderApiTest.ReadDirectory, and FileSystemProviderApiTest.Unmount on http://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20ASan%20LSan%20Tests%20(2) Please re-land after running through ...
6 years, 6 months ago (2014-06-19 01:04:42 UTC) #28
please use gerrit instead
Nevermind, already reverted in https://codereview.chromium.org/342003004/.
6 years, 6 months ago (2014-06-19 01:09:04 UTC) #29
mtomasz
6 years, 6 months ago (2014-06-19 01:09:31 UTC) #30
Message was sent while issue was closed.
On 2014/06/19 01:04:42, Rouslan Solomakhin wrote:
> This change broke on FileSystemProviderApiTest.GetMetadata,
> FileSystemProviderApiTest.ReadDirectory, and FileSystemProviderApiTest.Unmount
> on
>
http://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20...
> 
> Please re-land after running through the "linux_asan" try-bot. I will be
> reverting manually because drover and rietveld cannot handle files larger than
> ~900KB (histograms.xml). Sorry for the inconvenience.

Already reverted:
https://codereview.chromium.org/342003004/

Powered by Google App Engine
This is Rietveld 408576698