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

Issue 2820006: Use GetSystemSalt from the cryptohome lib instead of reading salt off disk. (Closed)

Created:
10 years, 6 months ago by Chris Masone
Modified:
9 years, 7 months ago
Reviewers:
Nikita (slow)
CC:
chromium-reviews, Paweł Hajdan Jr., nkostylev+cc_chromium.org, davemoore+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Use GetSystemSalt from the cryptohome lib instead of reading salt off disk. We used to read the system salt from a file on disk, which meant that we had to do a bunch of dancing to do some work during login on the FILE thread instead of the UI thread. Now, we no longer have to, because there is an API to request the system's salt value from cryptohomed over dbus. This CL is a precursor to some of the other login/cryptohome changes that are coming. BUG=chromium-os:323 TEST=unit tests, and loading up a chromium os device and logging in Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49799

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -57 lines) Patch
M chrome/browser/chromeos/cros/cryptohome_library.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/cryptohome_library.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/mock_cryptohome_library.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/google_authenticator.h View 4 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/google_authenticator.cc View 4 chunks +6 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/login/google_authenticator_unittest.cc View 4 chunks +16 lines, -37 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Chris Masone
10 years, 6 months ago (2010-06-15 01:12:34 UTC) #1
Nikita (slow)
LGTM http://codereview.chromium.org/2820006/diff/1/7 File chrome/browser/chromeos/login/google_authenticator_unittest.cc (right): http://codereview.chromium.org/2820006/diff/1/7#newcode459 chrome/browser/chromeos/login/google_authenticator_unittest.cc:459: message_loop.RunAllPending(); Shouldn't these 2 lines be swapped just ...
10 years, 6 months ago (2010-06-15 11:14:49 UTC) #2
Chris Masone
10 years, 6 months ago (2010-06-15 15:46:28 UTC) #3
pushing...

http://codereview.chromium.org/2820006/diff/1/7
File chrome/browser/chromeos/login/google_authenticator_unittest.cc (right):

http://codereview.chromium.org/2820006/diff/1/7#newcode459
chrome/browser/chromeos/login/google_authenticator_unittest.cc:459:
message_loop.RunAllPending();
On 2010/06/15 11:14:50, Nikita Kostylev wrote:
> Shouldn't these 2 lines be swapped just in case?
> Or you want to check that no other URLFetcher is created?

I do want to enforce that no other URLFetcher is created, yeah

Powered by Google App Engine
This is Rietveld 408576698