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

Issue 2809223003: Fix DownloadNotificationService crash caused by early getLastUsedProfile() call (Closed)

Created:
3 years, 8 months ago by bsazonov
Modified:
3 years, 8 months ago
CC:
chromium-reviews, David Trainor- moved to gerrit, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix DownloadNotificationService crash caused by early getLastUsedProfile() call This CL fixes crashes caused by calls to Profile.getLastUsedProfile() before browser initialization is completed. In such a case ProfileManager will try to create new Profile and that will eventually crash Chrome, because Prefs are not registered yet (Profile-related Prefs are registered during browser initialization by ChromeBrowserMainExtraPartsProfiles::EnsureBrowserContextKeyedServiceFactoriesBuilt). BUG=704025, 710968 Review-Url: https://codereview.chromium.org/2809223003 Cr-Commit-Position: refs/heads/master@{#464377} Committed: https://chromium.googlesource.com/chromium/src/+/16904d20070be165ac263fa38155d6174c8839ca

Patch Set 1 #

Patch Set 2 : Fixed tests #

Patch Set 3 : Fix tests on KitKat (ServiceTestCase is buggy on KitKat) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -3 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadNotificationServiceTest.java View 1 2 2 chunks +18 lines, -1 line 0 comments Download

Messages

Total messages: 23 (16 generated)
David Trainor- moved to gerrit
lgtm
3 years, 8 months ago (2017-04-12 16:09:21 UTC) #2
bsazonov
David, PTAL.
3 years, 8 months ago (2017-04-12 16:09:25 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2809223003/1
3 years, 8 months ago (2017-04-12 16:13:47 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/270394)
3 years, 8 months ago (2017-04-12 17:53:33 UTC) #7
David Trainor- moved to gerrit
lgtm thanks!
3 years, 8 months ago (2017-04-12 18:45:32 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2809223003/40001
3 years, 8 months ago (2017-04-13 11:48:10 UTC) #20
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 11:57:14 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/16904d20070be165ac263fa38155...

Powered by Google App Engine
This is Rietveld 408576698