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

Unified Diff: chrome/browser/chromeos/login/supervised/supervised_user_authentication.cc

Issue 2811673002: Reland: Stop passing raw pointers to base::Value API in c/b/chromeos and c/b/extensions (Closed)
Patch Set: Workaround with std::move Created 3 years, 8 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/supervised/supervised_user_authentication.cc
diff --git a/chrome/browser/chromeos/login/supervised/supervised_user_authentication.cc b/chrome/browser/chromeos/login/supervised/supervised_user_authentication.cc
index f90c820bb3e85729d3a22ae1e1c17218e3e4c108..4399cbc33f173a36dd2ba34a9d2b277c8094d83b 100644
--- a/chrome/browser/chromeos/login/supervised/supervised_user_authentication.cc
+++ b/chrome/browser/chromeos/login/supervised/supervised_user_authentication.cc
@@ -178,11 +178,11 @@ void SupervisedUserAuthentication::StorePasswordData(
owner_->GetPasswordInformation(user_id, &holder);
const base::Value* value;
if (password_data.GetWithoutPathExpansion(kSchemaVersion, &value))
- holder.SetWithoutPathExpansion(kSchemaVersion, value->DeepCopy());
+ holder.SetWithoutPathExpansion(kSchemaVersion, value->CreateDeepCopy());
if (password_data.GetWithoutPathExpansion(kSalt, &value))
- holder.SetWithoutPathExpansion(kSalt, value->DeepCopy());
+ holder.SetWithoutPathExpansion(kSalt, value->CreateDeepCopy());
if (password_data.GetWithoutPathExpansion(kPasswordRevision, &value))
- holder.SetWithoutPathExpansion(kPasswordRevision, value->DeepCopy());
+ holder.SetWithoutPathExpansion(kPasswordRevision, value->CreateDeepCopy());
owner_->SetPasswordInformation(user_id, &holder);
}

Powered by Google App Engine
This is Rietveld 408576698