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

Issue 23903051: Eliminate CHECK from CryptohomeLibrary::LoadSystemSalt (Closed)

Created:
7 years, 3 months ago by stevenjb
Modified:
7 years, 3 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, pam+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Eliminate CHECK from CryptohomeLibrary::LoadSystemSalt This change makes callers responsible for ensuring that the returned system salt is valid. It also includes removal of some stale unused code. BUG=288210 For c/b/e/aoi/music_manager_private: TBR=asargent@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224248

Patch Set 1 #

Total comments: 9

Patch Set 2 : Do not deprecate LegacyCompute #

Patch Set 3 : Fix unit_tests #

Patch Set 4 : Access WeakPtr from UI thread only #

Total comments: 7

Patch Set 5 : Elim unnecessary WeakPtr #

Patch Set 6 : Rebase #

Total comments: 4

Patch Set 7 : Id -> ID #

Patch Set 8 : Rebase #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -61 lines) Patch
M chrome/browser/chromeos/login/managed/managed_user_authenticator.cc View 1 chunk +2 lines, -0 lines 1 comment Download
M chrome/browser/chromeos/login/parallel_authenticator.cc View 1 chunk +2 lines, -0 lines 3 comments Download
M chrome/browser/chromeos/login/parallel_authenticator_unittest.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/music_manager_private/device_id_chromeos.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/pepper/device_id_fetcher.h View 1 2 3 4 1 chunk +7 lines, -9 lines 0 comments Download
M chrome/browser/renderer_host/pepper/device_id_fetcher.cc View 1 2 3 4 5 6 6 chunks +51 lines, -35 lines 2 comments Download
M chromeos/cryptohome/cryptohome_library.h View 1 chunk +3 lines, -1 line 1 comment Download
M chromeos/cryptohome/cryptohome_library.cc View 6 chunks +16 lines, -13 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
stevenjb
https://codereview.chromium.org/23903051/diff/1/chrome/browser/renderer_host/pepper/device_id_fetcher.cc File chrome/browser/renderer_host/pepper/device_id_fetcher.cc (left): https://codereview.chromium.org/23903051/diff/1/chrome/browser/renderer_host/pepper/device_id_fetcher.cc#oldcode115 chrome/browser/renderer_host/pepper/device_id_fetcher.cc:115: // in case the legacy id doesn't exist. Since ...
7 years, 3 months ago (2013-09-16 21:54:12 UTC) #1
raymes
https://codereview.chromium.org/23903051/diff/1/chrome/browser/pepper_flash_settings_manager.cc File chrome/browser/pepper_flash_settings_manager.cc (left): https://codereview.chromium.org/23903051/diff/1/chrome/browser/pepper_flash_settings_manager.cc#oldcode455 chrome/browser/pepper_flash_settings_manager.cc:455: // devices have been migrated. Again, I think we ...
7 years, 3 months ago (2013-09-16 22:13:38 UTC) #2
stevenjb
https://codereview.chromium.org/23903051/diff/1/chrome/browser/renderer_host/pepper/device_id_fetcher.cc File chrome/browser/renderer_host/pepper/device_id_fetcher.cc (left): https://codereview.chromium.org/23903051/diff/1/chrome/browser/renderer_host/pepper/device_id_fetcher.cc#oldcode115 chrome/browser/renderer_host/pepper/device_id_fetcher.cc:115: // in case the legacy id doesn't exist. On ...
7 years, 3 months ago (2013-09-16 22:32:48 UTC) #3
stevenjb
OK, maintaining the legacy code turned out not to be too bad with some minor ...
7 years, 3 months ago (2013-09-16 23:16:21 UTC) #4
Nikita (slow)
chromeos/login lgtm Please file a tracking issue to check return value.
7 years, 3 months ago (2013-09-17 09:54:24 UTC) #5
pneubeck (no reviews)
+Ryo, who might have an opinion on the usage of blocking calls. As a quick ...
7 years, 3 months ago (2013-09-17 15:01:10 UTC) #6
stevenjb
On 2013/09/17 15:01:10, pneubeck wrote: > +Ryo, who might have an opinion on the usage ...
7 years, 3 months ago (2013-09-17 15:24:20 UTC) #7
pneubeck (no reviews)
chromeos/cryptohome/ lgtm
7 years, 3 months ago (2013-09-17 15:25:34 UTC) #8
stevenjb
On 2013/09/17 15:24:20, stevenjb wrote: > On 2013/09/17 15:01:10, pneubeck wrote: > > +Ryo, who ...
7 years, 3 months ago (2013-09-17 15:25:35 UTC) #9
hashimoto
I'd be really happy to see the real solution being landed, I tried to figure ...
7 years, 3 months ago (2013-09-18 05:53:19 UTC) #10
stevenjb
PTAL https://codereview.chromium.org/23903051/diff/21001/chrome/browser/extensions/api/music_manager_private/device_id_chromeos.cc File chrome/browser/extensions/api/music_manager_private/device_id_chromeos.cc (right): https://codereview.chromium.org/23903051/diff/21001/chrome/browser/extensions/api/music_manager_private/device_id_chromeos.cc#newcode20 chrome/browser/extensions/api/music_manager_private/device_id_chromeos.cc:20: const int64 kRequestStstemSaltDelayMs = 500; On 2013/09/18 05:53:19, ...
7 years, 3 months ago (2013-09-18 19:23:35 UTC) #11
raymes
pepper lgtm https://codereview.chromium.org/23903051/diff/1/chrome/browser/renderer_host/pepper/device_id_fetcher.cc File chrome/browser/renderer_host/pepper/device_id_fetcher.cc (left): https://codereview.chromium.org/23903051/diff/1/chrome/browser/renderer_host/pepper/device_id_fetcher.cc#oldcode115 chrome/browser/renderer_host/pepper/device_id_fetcher.cc:115: // in case the legacy id doesn't ...
7 years, 3 months ago (2013-09-18 23:21:20 UTC) #12
stevenjb
https://codereview.chromium.org/23903051/diff/28001/chrome/browser/renderer_host/pepper/device_id_fetcher.cc File chrome/browser/renderer_host/pepper/device_id_fetcher.cc (right): https://codereview.chromium.org/23903051/diff/28001/chrome/browser/renderer_host/pepper/device_id_fetcher.cc#newcode39 chrome/browser/renderer_host/pepper/device_id_fetcher.cc:39: void GetMachineIdAsync(const DeviceIDFetcher::IDCallback& callback) { On 2013/09/18 23:21:21, raymes ...
7 years, 3 months ago (2013-09-18 23:50:51 UTC) #13
hashimoto
lgtm
7 years, 3 months ago (2013-09-19 02:54:43 UTC) #14
pneubeck (no reviews)
chromeos/ lgtm
7 years, 3 months ago (2013-09-19 14:45:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/23903051/46001
7 years, 3 months ago (2013-09-19 16:55:01 UTC) #16
commit-bot: I haz the power
Change committed as 224248
7 years, 3 months ago (2013-09-20 00:16:47 UTC) #17
zel
https://chromiumcodereview.appspot.com/23903051/diff/46001/chrome/browser/chromeos/login/managed/managed_user_authenticator.cc File chrome/browser/chromeos/login/managed/managed_user_authenticator.cc (right): https://chromiumcodereview.appspot.com/23903051/diff/46001/chrome/browser/chromeos/login/managed/managed_user_authenticator.cc#newcode107 chrome/browser/chromeos/login/managed/managed_user_authenticator.cc:107: CHECK(!ascii_salt.empty()); same here https://chromiumcodereview.appspot.com/23903051/diff/46001/chrome/browser/chromeos/login/parallel_authenticator.cc File chrome/browser/chromeos/login/parallel_authenticator.cc (right): https://chromiumcodereview.appspot.com/23903051/diff/46001/chrome/browser/chromeos/login/parallel_authenticator.cc#newcode191 chrome/browser/chromeos/login/parallel_authenticator.cc:191: ...
7 years, 3 months ago (2013-09-20 16:28:05 UTC) #18
stevenjb
https://chromiumcodereview.appspot.com/23903051/diff/46001/chrome/browser/chromeos/login/parallel_authenticator.cc File chrome/browser/chromeos/login/parallel_authenticator.cc (right): https://chromiumcodereview.appspot.com/23903051/diff/46001/chrome/browser/chromeos/login/parallel_authenticator.cc#newcode191 chrome/browser/chromeos/login/parallel_authenticator.cc:191: CHECK(!ascii_salt.empty()); On 2013/09/20 16:28:05, zel wrote: > how's this ...
7 years, 3 months ago (2013-09-20 16:42:23 UTC) #19
zel
https://chromiumcodereview.appspot.com/23903051/diff/46001/chrome/browser/chromeos/login/parallel_authenticator.cc File chrome/browser/chromeos/login/parallel_authenticator.cc (right): https://chromiumcodereview.appspot.com/23903051/diff/46001/chrome/browser/chromeos/login/parallel_authenticator.cc#newcode191 chrome/browser/chromeos/login/parallel_authenticator.cc:191: CHECK(!ascii_salt.empty()); On 2013/09/20 16:42:23, stevenjb wrote: > On 2013/09/20 ...
7 years, 3 months ago (2013-09-20 16:48:40 UTC) #20
zel
7 years, 3 months ago (2013-09-20 16:54:30 UTC) #21
Message was sent while issue was closed.
On 2013/09/20 16:48:40, zel wrote:
>
https://chromiumcodereview.appspot.com/23903051/diff/46001/chrome/browser/chr...
> File chrome/browser/chromeos/login/parallel_authenticator.cc (right):
> 
>
https://chromiumcodereview.appspot.com/23903051/diff/46001/chrome/browser/chr...
> chrome/browser/chromeos/login/parallel_authenticator.cc:191:
> CHECK(!ascii_salt.empty());
> On 2013/09/20 16:42:23, stevenjb wrote:
> > On 2013/09/20 16:28:05, zel wrote:
> > > how's this helping to fix this problem?
> > > 
> > > you've just move the assert from one place to another
> > 
> > The crash we were seeing occurred because some extensions code was trying to
> > access system salt early. We still need to ensure that we don't try to login
> > without system salt. We should absolutely change this to be more robust, but
> > someone more familiar with the login code should do this. There's a long
> > standing bug to fix this, crbug.com/141009.
> 
> Yes, I would rather:
> a) Find out which extension is responsible for that (there are not that many
of
> them running at login screen) and figure out if it's really launched too
early,
> and
> b) Revert this CL, and
> c) Fix http://crbug.com/141009 properly

To answer (a): PrefMetricsService::PrefMetricsService() seems to be calling
extensions::api::DeviceId::GetDeviceId(). That's what caused the flood of these
crashes in M31.

Powered by Google App Engine
This is Rietveld 408576698