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

Unified Diff: sync/internal_api/base_node.cc

Issue 1866243002: Convert //sync from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: sync/internal_api/base_node.cc
diff --git a/sync/internal_api/base_node.cc b/sync/internal_api/base_node.cc
index bde209f365a9d8d7e86e197d1635248799d218cb..29d4574fffce394072b2bb7032313ad3324994b3 100644
--- a/sync/internal_api/base_node.cc
+++ b/sync/internal_api/base_node.cc
@@ -56,8 +56,9 @@ bool BaseNode::DecryptIfNecessary() {
GetEntry()->GetSpecifics();
if (specifics.has_password()) {
// Passwords have their own legacy encryption structure.
- scoped_ptr<sync_pb::PasswordSpecificsData> data(DecryptPasswordSpecifics(
- specifics, GetTransaction()->GetCryptographer()));
+ std::unique_ptr<sync_pb::PasswordSpecificsData> data(
+ DecryptPasswordSpecifics(specifics,
+ GetTransaction()->GetCryptographer()));
if (!data) {
GetTransaction()->GetWrappedTrans()->OnUnrecoverableError(
FROM_HERE, std::string("Failed to decrypt encrypted node of type ") +

Powered by Google App Engine
This is Rietveld 408576698