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

Issue 14886003: Make base:ReplaceFile return an informative error. (Closed)

Created:
7 years, 7 months ago by dgrogan
Modified:
7 years, 7 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, sail+watch_chromium.org, alecflett, jsbell
Visibility:
Public.

Description

Make base:ReplaceFile return an informative error. It currently just returns true/false to indicate success. More information to diagnose and log failures would be helpful in IndexedDB. This patch also logs the new error when ReplaceFile fails in IndexedDB. BUG=229268 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199025

Patch Set 1 #

Patch Set 2 : switch order in .h file #

Patch Set 3 : remove blank line #

Patch Set 4 : ToT #

Patch Set 5 : tot #

Patch Set 6 : fix compile #

Patch Set 7 : fix compile #2 #

Patch Set 8 : make use of new stuff, init variable, change to returning bool everywhere #

Patch Set 9 : remove erroneous base:: #

Patch Set 10 : rename e to error, fix indent, record error to histogram #

Patch Set 11 : change error message #

Patch Set 12 : Use default parameter instead of 2 methods #

Patch Set 13 : change comment #

Total comments: 13

Patch Set 14 : respond to comments #

Total comments: 4

Patch Set 15 : respond to round 2 comments #

Patch Set 16 : Rename the function in the cc files #

Patch Set 17 : ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -94 lines) Patch
M base/file_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +7 lines, -1 line 0 comments Download
M base/file_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M base/file_util_posix.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -2 lines 0 comments Download
M base/file_util_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -1 line 0 comments Download
M base/platform_file.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +10 lines, -8 lines 0 comments Download
M base/platform_file_posix.cc View 2 chunks +28 lines, -33 lines 0 comments Download
M base/platform_file_win.cc View 2 chunks +38 lines, -45 lines 0 comments Download
M third_party/leveldatabase/env_chromium.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
dgrogan
Jim, could you review this? Again, let me know if you'd rather me find a ...
7 years, 7 months ago (2013-05-06 19:55:35 UTC) #1
jar (doing other things)
https://codereview.chromium.org/14886003/diff/1002/base/file_util.h File base/file_util.h (right): https://codereview.chromium.org/14886003/diff/1002/base/file_util.h#newcode104 base/file_util.h:104: // Returns true on success and optionally sets *error ...
7 years, 7 months ago (2013-05-07 01:12:36 UTC) #2
dgrogan
https://codereview.chromium.org/14886003/diff/1002/base/file_util.h File base/file_util.h (right): https://codereview.chromium.org/14886003/diff/1002/base/file_util.h#newcode104 base/file_util.h:104: // Returns true on success and optionally sets *error ...
7 years, 7 months ago (2013-05-07 19:02:05 UTC) #3
jar (doing other things)
https://codereview.chromium.org/14886003/diff/1002/base/file_util.h File base/file_util.h (right): https://codereview.chromium.org/14886003/diff/1002/base/file_util.h#newcode104 base/file_util.h:104: // Returns true on success and optionally sets *error ...
7 years, 7 months ago (2013-05-07 19:44:50 UTC) #4
dgrogan
https://codereview.chromium.org/14886003/diff/1002/base/platform_file.h File base/platform_file.h (right): https://codereview.chromium.org/14886003/diff/1002/base/platform_file.h#newcode211 base/platform_file.h:211: #endif On 2013/05/07 19:44:50, jar wrote: > On 2013/05/07 ...
7 years, 7 months ago (2013-05-07 21:24:06 UTC) #5
jar (doing other things)
https://codereview.chromium.org/14886003/diff/1002/base/platform_file.h File base/platform_file.h (right): https://codereview.chromium.org/14886003/diff/1002/base/platform_file.h#newcode211 base/platform_file.h:211: #endif On 2013/05/07 21:24:06, dgrogan wrote: > On 2013/05/07 ...
7 years, 7 months ago (2013-05-07 21:39:01 UTC) #6
dgrogan
https://codereview.chromium.org/14886003/diff/1002/base/platform_file.h File base/platform_file.h (right): https://codereview.chromium.org/14886003/diff/1002/base/platform_file.h#newcode211 base/platform_file.h:211: #endif On 2013/05/07 21:39:02, jar wrote: > Is it ...
7 years, 7 months ago (2013-05-07 21:44:43 UTC) #7
dgrogan
Latest patch that addresses comments is uploaded, take a look when you can.
7 years, 7 months ago (2013-05-07 22:05:57 UTC) #8
jar (doing other things)
https://codereview.chromium.org/14886003/diff/1002/base/platform_file.h File base/platform_file.h (right): https://codereview.chromium.org/14886003/diff/1002/base/platform_file.h#newcode211 base/platform_file.h:211: #endif On 2013/05/07 21:44:43, dgrogan wrote: > On 2013/05/07 ...
7 years, 7 months ago (2013-05-07 22:31:32 UTC) #9
dgrogan
Thanks for the comments. Next patch is up. https://codereview.chromium.org/14886003/diff/1002/base/platform_file.h File base/platform_file.h (right): https://codereview.chromium.org/14886003/diff/1002/base/platform_file.h#newcode211 base/platform_file.h:211: #endif ...
7 years, 7 months ago (2013-05-07 22:45:16 UTC) #10
jar (doing other things)
lgtm
7 years, 7 months ago (2013-05-07 22:52:45 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/14886003/62001
7 years, 7 months ago (2013-05-07 22:54:08 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-07 23:04:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/14886003/70002
7 years, 7 months ago (2013-05-07 23:08:26 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-08 00:14:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/14886003/81001
7 years, 7 months ago (2013-05-08 14:22:43 UTC) #16
commit-bot: I haz the power
7 years, 7 months ago (2013-05-08 22:02:38 UTC) #17
Message was sent while issue was closed.
Change committed as 199025

Powered by Google App Engine
This is Rietveld 408576698