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

Issue 1055453007: Added CHECKs for null pointers in ChromeAppSorting. (Closed)

Created:
5 years, 8 months ago by Matt Giuca
Modified:
5 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added CHECKs for null pointers in ChromeAppSorting. These are designed to give us more information about production-only crashes occurring in ChromeAppSorting. These checks should help narrow down the times at which extension_scoped_prefs_ is null. Added TODOs to remove most of the checks later (although I plan to leave one in as a safeguard). BUG=476648 Committed: https://crrev.com/927270474a2720c30ee0bef9d19e25267344da36 Cr-Commit-Position: refs/heads/master@{#326746}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Added CHECK(this) just to make sure that ExtensionPrefs is non-null. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -0 lines) Patch
M chrome/browser/extensions/chrome_app_sorting.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_app_sorting.cc View 3 chunks +8 lines, -0 lines 0 comments Download
M extensions/browser/app_sorting.h View 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/browser/extension_prefs.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/null_app_sorting.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/null_app_sorting.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Matt Giuca
I'm adding CHECKs to help diagnose this bug. I will add more details on the ...
5 years, 8 months ago (2015-04-23 08:56:54 UTC) #2
Matt Giuca
PS. This is intended to be merged to M42, so we need to be *very* ...
5 years, 8 months ago (2015-04-23 08:57:56 UTC) #3
not at google - send to devlin
lgtm https://codereview.chromium.org/1055453007/diff/1/chrome/browser/extensions/chrome_app_sorting.cc File chrome/browser/extensions/chrome_app_sorting.cc (right): https://codereview.chromium.org/1055453007/diff/1/chrome/browser/extensions/chrome_app_sorting.cc#newcode60 chrome/browser/extensions/chrome_app_sorting.cc:60: extension_scoped_prefs_ = prefs; perhaps add 2 extra checks ...
5 years, 8 months ago (2015-04-23 18:17:15 UTC) #4
Matt Giuca
https://codereview.chromium.org/1055453007/diff/1/chrome/browser/extensions/chrome_app_sorting.cc File chrome/browser/extensions/chrome_app_sorting.cc (right): https://codereview.chromium.org/1055453007/diff/1/chrome/browser/extensions/chrome_app_sorting.cc#newcode60 chrome/browser/extensions/chrome_app_sorting.cc:60: extension_scoped_prefs_ = prefs; I don't want to alter this ...
5 years, 8 months ago (2015-04-24 01:14:14 UTC) #5
Matt Giuca
I didn't hear back from you, and I wanted to commit this today, so I'm ...
5 years, 8 months ago (2015-04-24 03:55:27 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1055453007/20001
5 years, 8 months ago (2015-04-24 03:55:47 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-24 05:59:37 UTC) #10
commit-bot: I haz the power
5 years, 8 months ago (2015-04-24 06:00:20 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/927270474a2720c30ee0bef9d19e25267344da36
Cr-Commit-Position: refs/heads/master@{#326746}

Powered by Google App Engine
This is Rietveld 408576698