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

Issue 999953002: Use LockFile/UnlockFile for Settings to port to Windows (Closed)

Created:
5 years, 9 months ago by scottmg
Modified:
5 years, 8 months ago
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@lock-fileio-2
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

Use LockFile/UnlockFile for Settings to port to Windows Adds LoggingOpenFileForReadAndWrite, LoggingTruncateFile, and UUID::GenerateFromSystem in support. R=mark@chromium.org, rsesek@chromium.org BUG=crashpad:13 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/8272a4cefe5cbcf25f3f24601c104b97b9ada9d0

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : rebase #

Patch Set 4 : windows porting #

Patch Set 5 : fixes #

Patch Set 6 : factor out uuid func #

Patch Set 7 : . #

Patch Set 8 : comment #

Patch Set 9 : . #

Patch Set 10 : rebase #

Total comments: 2

Patch Set 11 : init #

Total comments: 8

Patch Set 12 : review fixes #

Total comments: 2

Patch Set 13 : uuid init to member #

Patch Set 14 : update c_r_d_w #

Total comments: 8

Patch Set 15 : . #

Total comments: 6

Patch Set 16 : Tag inside, no info spam #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -109 lines) Patch
M client/client.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -4 lines 0 comments Download
M client/client_test.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -8 lines 0 comments Download
M client/crash_report_database_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -6 lines 0 comments Download
M client/settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +21 lines, -3 lines 0 comments Download
M client/settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 10 chunks +50 lines, -48 lines 0 comments Download
M client/settings_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +9 lines, -2 lines 0 comments Download
M util/file/file_io.h View 1 2 3 4 5 6 7 3 chunks +27 lines, -4 lines 0 comments Download
M util/file/file_io_posix.cc View 1 2 3 4 3 chunks +37 lines, -12 lines 0 comments Download
M util/file/file_io_win.cc View 1 2 3 3 chunks +50 lines, -22 lines 0 comments Download
M util/misc/uuid.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +17 lines, -0 lines 0 comments Download
M util/misc/uuid.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +28 lines, -0 lines 0 comments Download
M util/misc/uuid_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (1 generated)
scottmg
This CL has been dragging on forever 5 minutes at a time so I wanted ...
5 years, 8 months ago (2015-04-01 00:49:14 UTC) #2
Robert Sesek
https://codereview.chromium.org/999953002/diff/180001/client/settings.cc File client/settings.cc (left): https://codereview.chromium.org/999953002/diff/180001/client/settings.cc#oldcode64 client/settings.cc:64: ScopedFileHandle handle(HANDLE_EINTR( On 2015/04/01 00:49:14, scottmg wrote: > I ...
5 years, 8 months ago (2015-04-01 15:08:26 UTC) #3
scottmg
Thanks. I changed RecoverSettings() to simply say "Initializing..." as it's not easily detectable that the ...
5 years, 8 months ago (2015-04-01 19:32:11 UTC) #4
Mark Mentovai
Not a complete review, just something that I spotted. https://codereview.chromium.org/999953002/diff/220001/util/misc/uuid.h File util/misc/uuid.h (right): https://codereview.chromium.org/999953002/diff/220001/util/misc/uuid.h#newcode88 util/misc/uuid.h:88: ...
5 years, 8 months ago (2015-04-01 21:15:19 UTC) #5
scottmg
https://codereview.chromium.org/999953002/diff/220001/util/misc/uuid.h File util/misc/uuid.h (right): https://codereview.chromium.org/999953002/diff/220001/util/misc/uuid.h#newcode88 util/misc/uuid.h:88: static bool GenerateFromSystem(UUID* into); On 2015/04/01 21:15:19, Mark Mentovai ...
5 years, 8 months ago (2015-04-01 21:51:37 UTC) #6
Mark Mentovai
This does look correct. I’m very sorry that this fell to the bottom of my ...
5 years, 8 months ago (2015-04-17 21:32:44 UTC) #7
Robert Sesek
Oops I had unsent comments! https://codereview.chromium.org/999953002/diff/260001/client/settings.cc File client/settings.cc (right): https://codereview.chromium.org/999953002/diff/260001/client/settings.cc#newcode37 client/settings.cc:37: CheckedCloseFile(handle); Shouldn't this be ...
5 years, 8 months ago (2015-04-17 21:33:36 UTC) #8
scottmg
Thanks https://codereview.chromium.org/999953002/diff/260001/client/settings.cc File client/settings.cc (right): https://codereview.chromium.org/999953002/diff/260001/client/settings.cc#newcode37 client/settings.cc:37: CheckedCloseFile(handle); On 2015/04/17 21:33:36, Robert Sesek wrote: > ...
5 years, 8 months ago (2015-04-20 18:20:41 UTC) #9
Mark Mentovai
https://codereview.chromium.org/999953002/diff/280001/client/settings.cc File client/settings.cc (right): https://codereview.chromium.org/999953002/diff/280001/client/settings.cc#newcode249 client/settings.cc:249: LOG(INFO) << "Initializing settings file " << file_path().value().c_str(); Now ...
5 years, 8 months ago (2015-04-20 20:45:08 UTC) #10
scottmg
https://codereview.chromium.org/999953002/diff/280001/client/settings.cc File client/settings.cc (right): https://codereview.chromium.org/999953002/diff/280001/client/settings.cc#newcode249 client/settings.cc:249: LOG(INFO) << "Initializing settings file " << file_path().value().c_str(); On ...
5 years, 8 months ago (2015-04-20 21:11:28 UTC) #11
Robert Sesek
LGTM
5 years, 8 months ago (2015-04-20 21:17:48 UTC) #12
Mark Mentovai
https://codereview.chromium.org/999953002/diff/280001/client/settings.cc File client/settings.cc (right): https://codereview.chromium.org/999953002/diff/280001/client/settings.cc#newcode249 client/settings.cc:249: LOG(INFO) << "Initializing settings file " << file_path().value().c_str(); scottmg ...
5 years, 8 months ago (2015-04-20 21:17:53 UTC) #13
Mark Mentovai
If there are no more changes, LGTM from me too. Thanks!
5 years, 8 months ago (2015-04-20 21:18:26 UTC) #14
Robert Sesek
https://codereview.chromium.org/999953002/diff/280001/client/settings.cc File client/settings.cc (right): https://codereview.chromium.org/999953002/diff/280001/client/settings.cc#newcode249 client/settings.cc:249: LOG(INFO) << "Initializing settings file " << file_path().value().c_str(); On ...
5 years, 8 months ago (2015-04-20 21:18:32 UTC) #15
scottmg
5 years, 8 months ago (2015-04-20 21:21:54 UTC) #16
Message was sent while issue was closed.
Committed patchset #16 (id:300001) manually as
8272a4cefe5cbcf25f3f24601c104b97b9ada9d0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698