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

Unified Diff: chrome/browser/chromeos/login/managed/supervised_user_login_flow.cc

Issue 335833003: Rename "managed (mode|user)" to "supervised user" (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments (+ a few other cleanups) Created 6 years, 6 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/managed/supervised_user_login_flow.cc
diff --git a/chrome/browser/chromeos/login/managed/supervised_user_login_flow.cc b/chrome/browser/chromeos/login/managed/supervised_user_login_flow.cc
index 65a4485b64b5eed778d0e7286160a6eebc44ab7d..3b056f554de15ab748f2764e3fb18fe1bcfa6575 100644
--- a/chrome/browser/chromeos/login/managed/supervised_user_login_flow.cc
+++ b/chrome/browser/chromeos/login/managed/supervised_user_login_flow.cc
@@ -132,8 +132,8 @@ void SupervisedUserLoginFlow::OnPasswordChangeDataLoaded(
base::Base64Decode(base64_signature, &signature);
scoped_ptr<base::DictionaryValue> data_copy(password_data->DeepCopy());
cryptohome::KeyDefinition key(password,
- kCryptohomeManagedUserKeyLabel,
- kCryptohomeManagedUserKeyPrivileges);
+ kCryptohomeSupervisedUserKeyLabel,
+ kCryptohomeSupervisedUserKeyPrivileges);
authenticator_ = new ExtendedAuthenticator(this);
SupervisedUserAuthentication::Schema current_schema =
@@ -144,7 +144,7 @@ void SupervisedUserLoginFlow::OnPasswordChangeDataLoaded(
if (SupervisedUserAuthentication::SCHEMA_PLAIN == current_schema) {
// We need to add new key, and block old one. As we don't actually have
// signature key, use Migrate privilege instead of AuthorizedUpdate.
- key.privileges = kCryptohomeManagedUserIncompleteKeyPrivileges;
+ key.privileges = kCryptohomeSupervisedUserIncompleteKeyPrivileges;
VLOG(1) << "Adding new schema key";
DCHECK(context_.GetKey()->GetLabel().empty());
@@ -160,10 +160,10 @@ void SupervisedUserLoginFlow::OnPasswordChangeDataLoaded(
if (auth->HasIncompleteKey(user_id())) {
// We need to use Migrate instead of Authorized Update privilege.
- key.privileges = kCryptohomeManagedUserIncompleteKeyPrivileges;
+ key.privileges = kCryptohomeSupervisedUserIncompleteKeyPrivileges;
}
// Just update the key.
- DCHECK_EQ(context_.GetKey()->GetLabel(), kCryptohomeManagedUserKeyLabel);
+ DCHECK_EQ(context_.GetKey()->GetLabel(), kCryptohomeSupervisedUserKeyLabel);
authenticator_->UpdateKeyAuthorized(
context_,
key,
@@ -185,7 +185,7 @@ void SupervisedUserLoginFlow::OnNewKeyAdded(
auth->MarkKeyIncomplete(user_id(), true /* incomplete */);
authenticator_->RemoveKey(
context_,
- kLegacyCryptohomeManagedUserKeyLabel,
+ kLegacyCryptohomeSupervisedUserKeyLabel,
base::Bind(&SupervisedUserLoginFlow::OnOldKeyRemoved,
weak_factory_.GetWeakPtr()));
}

Powered by Google App Engine
This is Rietveld 408576698