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

Unified Diff: chrome/browser/chromeos/login/parallel_authenticator.cc

Issue 270663002: Implemented profile-aware owner key loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/parallel_authenticator.cc
diff --git a/chrome/browser/chromeos/login/parallel_authenticator.cc b/chrome/browser/chromeos/login/parallel_authenticator.cc
index ba7e6f4ca6a4d5b07803a5bd06b6e30c8559b8d1..82ebe8f303d6bda8579b34edb6986340cc062459 100644
--- a/chrome/browser/chromeos/login/parallel_authenticator.cc
+++ b/chrome/browser/chromeos/login/parallel_authenticator.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/chromeos/boot_times_loader.h"
#include "chrome/browser/chromeos/login/authentication_notification_details.h"
#include "chrome/browser/chromeos/login/login_status_consumer.h"
+#include "chrome/browser/chromeos/login/owner_key_reloader_service.h"
#include "chrome/browser/chromeos/login/user.h"
#include "chrome/browser/chromeos/login/user_manager.h"
#include "chrome/browser/chromeos/settings/cros_settings.h"
@@ -505,9 +506,10 @@ bool ParallelAuthenticator::VerifyOwner() {
owner_is_verified_ = true;
return true;
}
+
// Now we can continue reading the private key.
- DeviceSettingsService::Get()->SetUsername(
- current_state_->user_context.username);
+ OwnerKeyReloaderService::SetUsername(current_state_->user_context.username);
+
// This should trigger certificate loading, which is needed in order to
// correctly determine if the current user is the owner.
if (LoginState::IsInitialized()) {

Powered by Google App Engine
This is Rietveld 408576698