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

Issue 6545001: Implement chrome://crashes (Closed)

Created:
9 years, 10 months ago by stuartmorgan
Modified:
9 years, 7 months ago
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Implement chrome://crashes Creates a new internal page for listing recent reported crashes, to make it easier for users to report crashes, or get crash IDs when asked in bug reports. Won't yet display any crashes on Windows, since the breakpad side is not yet done on Windows. BUG=41106 TEST=Visit chrome://crashes; depending on the build type, platform, and metric pref state, it should display crashes or an informative message. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75433

Patch Set 1 #

Patch Set 2 : Presubmit fixes #

Patch Set 3 : Update to trunk #

Patch Set 4 : Presubmit fix #

Total comments: 16

Patch Set 5 : Addresses review comments #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+565 lines, -0 lines) Patch
M chrome/app/chromium_strings.grd View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/app/google_chrome_strings.grd View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/crash_upload_list.h View 1 2 3 4 1 chunk +68 lines, -0 lines 0 comments Download
A chrome/browser/crash_upload_list.cc View 1 2 3 4 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/resources/crashes.css View 1 2 3 4 1 chunk +53 lines, -0 lines 1 comment Download
A chrome/browser/resources/crashes.html View 1 chunk +23 lines, -0 lines 3 comments Download
A chrome/browser/resources/crashes.js View 1 2 3 4 1 chunk +69 lines, -0 lines 3 comments Download
A chrome/browser/webui/crashes_ui.h View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/browser/webui/crashes_ui.cc View 1 2 1 chunk +214 lines, -0 lines 1 comment Download
M chrome/browser/webui/web_ui_factory.cc View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
stuartmorgan
9 years, 10 months ago (2011-02-17 23:16:09 UTC) #1
arv (Not doing code reviews)
I wont be able to get to this until next week. erik On Thu, Feb ...
9 years, 10 months ago (2011-02-18 00:31:20 UTC) #2
stuartmorgan
Nico, any chance you could take a look today so I can land this before ...
9 years, 10 months ago (2011-02-18 16:51:37 UTC) #3
Nico
LG assuming that one can't use our templating framework asynchronously. http://codereview.chromium.org/6545001/diff/6009/chrome/app/google_chrome_strings.grd File chrome/app/google_chrome_strings.grd (right): http://codereview.chromium.org/6545001/diff/6009/chrome/app/google_chrome_strings.grd#newcode518 ...
9 years, 10 months ago (2011-02-18 18:16:01 UTC) #4
stuartmorgan
http://codereview.chromium.org/6545001/diff/6009/chrome/app/google_chrome_strings.grd File chrome/app/google_chrome_strings.grd (right): http://codereview.chromium.org/6545001/diff/6009/chrome/app/google_chrome_strings.grd#newcode518 chrome/app/google_chrome_strings.grd:518: This page only shows information on your recent crashes ...
9 years, 10 months ago (2011-02-18 19:41:21 UTC) #5
Nico
SLG
9 years, 10 months ago (2011-02-18 19:46:10 UTC) #6
arv (Not doing code reviews)
9 years, 10 months ago (2011-02-20 23:44:00 UTC) #7
LGTM too. There are a few markup errors but nothing that should cause any major
breakage.

http://codereview.chromium.org/6545001/diff/3034/chrome/browser/resources/cra...
File chrome/browser/resources/crashes.css (right):

http://codereview.chromium.org/6545001/diff/3034/chrome/browser/resources/cra...
chrome/browser/resources/crashes.css:5: .hidden {
FYI, WebKit now supports the hidden boolean attribute (and DOM property) which
also does display none for you.

http://codereview.chromium.org/6545001/diff/3034/chrome/browser/resources/cra...
File chrome/browser/resources/crashes.html (right):

http://codereview.chromium.org/6545001/diff/3034/chrome/browser/resources/cra...
chrome/browser/resources/crashes.html:12: <header><h1
i18n-content="crashesTitle"></header>
Missing end tag for h1

http://codereview.chromium.org/6545001/diff/3034/chrome/browser/resources/cra...
chrome/browser/resources/crashes.html:16: <p id="noCrashes"
i18n-content="noCrashesMessage" class="hidden"></div>
Wrong end tag.

http://codereview.chromium.org/6545001/diff/3034/chrome/browser/resources/cra...
chrome/browser/resources/crashes.html:16: <p id="noCrashes"
i18n-content="noCrashesMessage" class="hidden"></div>
or with hidden attribute

<p id="noCrashes" i18n-content="noCrashesMessage" hidden></p>

http://codereview.chromium.org/6545001/diff/3034/chrome/browser/resources/cra...
File chrome/browser/resources/crashes.js (right):

http://codereview.chromium.org/6545001/diff/3034/chrome/browser/resources/cra...
chrome/browser/resources/crashes.js:25: if (enabled) {
If you used HTML5 hidden property:

$('enabledMode').hidden = !enabled;
$('disabledMode').hidden = enabled;

http://codereview.chromium.org/6545001/diff/3034/chrome/browser/resources/cra...
chrome/browser/resources/crashes.js:35: crashSection.innerHTML = '';
I prefer textContent = '' but no big deal.

http://codereview.chromium.org/6545001/diff/3034/chrome/browser/resources/cra...
chrome/browser/resources/crashes.js:40: var crashBlock =
document.createElement('div');
An alternative might have been to put this as markup in the original HTML inside
a display none div. Then you could have grabbed it and cloned it and modified
the text.

In this case the dom is relatively small so it is easy enough to manage.

http://codereview.chromium.org/6545001/diff/3034/chrome/browser/webui/crashes...
File chrome/browser/webui/crashes_ui.cc (right):

http://codereview.chromium.org/6545001/diff/3034/chrome/browser/webui/crashes...
chrome/browser/webui/crashes_ui.cc:137: 
Remove empty lines in here?

Powered by Google App Engine
This is Rietveld 408576698