DescriptionFix 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) #
Messages
Total messages: 23 (16 generated)
|