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

Issue 6771021: Implement CrashUploadListWin to enable chrome://crashes on Windows. (Closed)

Created:
9 years, 9 months ago by Alexei Svitkine (slow)
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Implement CrashUploadListWin to enable chrome://crashes on Windows. Added new class CrashUploadListWin, subclass of CrashUploadList which has the Windows platform-specific logic to read crash logs from Windows Event Log. Added static CrashUploadList::Create() factory method which returns an instance of CrashUploadListWin on Windows and an instance of CrashUploadList on other platforms. Also implemented the max_count parameter in CrashUploadList::GetUploadedCrashes(), which was part of the interface but was ignored by the code. BUG=73468 TEST=Open chrome://crashes under Windows after one or more crash reports were uploaded. See the crash reports listed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80165

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Fix max_count logic. #

Total comments: 9

Patch Set 4 : Addressing review feedback. #

Patch Set 5 : Add class-level comment. #

Total comments: 17

Patch Set 6 : Addressing more review comments. #

Patch Set 7 : Fixed Mac/Linux compilation issue #

Total comments: 4

Patch Set 8 : Addressing a couple more comments. #

Total comments: 7

Patch Set 9 : Addressing MAD's comments. #

Patch Set 10 : More paranoid bytes_read checking. #

Patch Set 11 : Less strict crash string parsing. #

Total comments: 7

Patch Set 12 : Addressing MAD's latest comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -21 lines) Patch
M chrome/browser/crash_upload_list.h View 1 2 3 4 5 2 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/crash_upload_list.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +47 lines, -16 lines 0 comments Download
A chrome/browser/crash_upload_list_win.h View 1 2 3 4 5 6 7 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/crash_upload_list_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +80 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/crashes_ui.cc View 1 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Alexei Svitkine (slow)
9 years, 9 months ago (2011-03-29 20:07:00 UTC) #1
stuartmorgan
http://codereview.chromium.org/6771021/diff/4001/chrome/browser/crash_upload_list.cc File chrome/browser/crash_upload_list.cc (right): http://codereview.chromium.org/6771021/diff/4001/chrome/browser/crash_upload_list.cc#newcode53 chrome/browser/crash_upload_list.cc:53: InformDelegateOfCompletionAsynchronously(); It would be cleaner for the subclass to ...
9 years, 9 months ago (2011-03-29 21:19:57 UTC) #2
Alexei Svitkine (slow)
http://codereview.chromium.org/6771021/diff/4001/chrome/browser/crash_upload_list.cc File chrome/browser/crash_upload_list.cc (right): http://codereview.chromium.org/6771021/diff/4001/chrome/browser/crash_upload_list.cc#newcode53 chrome/browser/crash_upload_list.cc:53: InformDelegateOfCompletionAsynchronously(); On 2011/03/29 21:19:57, stuartmorgan wrote: > It would ...
9 years, 8 months ago (2011-03-30 15:36:40 UTC) #3
stuartmorgan
Sorry, a few more small things. (The comments about splitting out helper functions are just ...
9 years, 8 months ago (2011-03-30 16:28:10 UTC) #4
stuartmorgan
http://codereview.chromium.org/6771021/diff/12001/chrome/browser/crash_upload_list_win.h File chrome/browser/crash_upload_list_win.h (right): http://codereview.chromium.org/6771021/diff/12001/chrome/browser/crash_upload_list_win.h#newcode19 chrome/browser/crash_upload_list_win.h:19: void LoadCrashList(); Oh, and prompted by the current thread ...
9 years, 8 months ago (2011-03-30 16:31:09 UTC) #5
Alexei Svitkine (slow)
http://codereview.chromium.org/6771021/diff/12001/chrome/browser/crash_upload_list.h File chrome/browser/crash_upload_list.h (right): http://codereview.chromium.org/6771021/diff/12001/chrome/browser/crash_upload_list.h#newcode59 chrome/browser/crash_upload_list.h:59: // Reads the upload log and stores the lines ...
9 years, 8 months ago (2011-03-30 18:54:37 UTC) #6
stuartmorgan
LGTM with tiny tweaks, assuming mad signs off on the Windows-y stuff. Thanks for doing ...
9 years, 8 months ago (2011-03-30 20:29:51 UTC) #7
Alexei Svitkine (slow)
http://codereview.chromium.org/6771021/diff/9009/chrome/browser/crash_upload_list.cc File chrome/browser/crash_upload_list.cc (right): http://codereview.chromium.org/6771021/diff/9009/chrome/browser/crash_upload_list.cc#newcode60 chrome/browser/crash_upload_list.cc:60: std::vector<std::string> log_entries; On 2011/03/30 20:29:51, stuartmorgan wrote: > Move ...
9 years, 8 months ago (2011-03-30 20:52:43 UTC) #8
MAD
Cool... Very well done... I have a few comments on the Windows implementation... The rest ...
9 years, 8 months ago (2011-03-31 14:07:58 UTC) #9
Alexei Svitkine (slow)
http://codereview.chromium.org/6771021/diff/12002/chrome/browser/crash_upload_list_win.cc File chrome/browser/crash_upload_list_win.cc (right): http://codereview.chromium.org/6771021/diff/12002/chrome/browser/crash_upload_list_win.cc#newcode32 chrome/browser/crash_upload_list_win.cc:32: EVENTLOGRECORD* record = (EVENTLOGRECORD*)&buffer[record_offset]; On 2011/03/31 14:07:58, MAD wrote: ...
9 years, 8 months ago (2011-03-31 14:36:46 UTC) #10
MAD
I didn't get a chance to look at the recent changes (going to do an ...
9 years, 8 months ago (2011-03-31 14:42:51 UTC) #11
Alexei Svitkine (slow)
Done.
9 years, 8 months ago (2011-03-31 15:00:01 UTC) #12
Alexei Svitkine (slow)
I've changed the message string parsing to just look for "Id=*." per Sorin's suggestion in ...
9 years, 8 months ago (2011-03-31 18:09:01 UTC) #13
MAD
Sorry about the delay... Almost there... Still a few more comments.... BYE MAD http://codereview.chromium.org/6771021/diff/19008/chrome/browser/crash_upload_list.cc File ...
9 years, 8 months ago (2011-04-01 14:28:19 UTC) #14
Alexei Svitkine (slow)
http://codereview.chromium.org/6771021/diff/19008/chrome/browser/crash_upload_list.cc File chrome/browser/crash_upload_list.cc (right): http://codereview.chromium.org/6771021/diff/19008/chrome/browser/crash_upload_list.cc#newcode79 chrome/browser/crash_upload_list.cc:79: CrashInfo info(components[1], On 2011/04/01 14:28:20, MAD wrote: > This ...
9 years, 8 months ago (2011-04-01 15:01:23 UTC) #15
MAD
Excellent! Thanks! LGTM! BYE! MAD! :-)! ! http://codereview.chromium.org/6771021/diff/19008/chrome/browser/crash_upload_list.cc File chrome/browser/crash_upload_list.cc (right): http://codereview.chromium.org/6771021/diff/19008/chrome/browser/crash_upload_list.cc#newcode79 chrome/browser/crash_upload_list.cc:79: CrashInfo info(components[1], ...
9 years, 8 months ago (2011-04-01 15:06:27 UTC) #16
commit-bot: I haz the power
9 years, 8 months ago (2011-04-01 15:58:54 UTC) #17
Change committed as 80165

Powered by Google App Engine
This is Rietveld 408576698