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

Unified Diff: chromeos/dbus/fake_easy_unlock_client.cc

Issue 1394993004: Make ValueDeserializer::Deserialize return scoped_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix and add ::From Created 5 years, 2 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: chromeos/dbus/fake_easy_unlock_client.cc
diff --git a/chromeos/dbus/fake_easy_unlock_client.cc b/chromeos/dbus/fake_easy_unlock_client.cc
index 77441881878d060a91178a1c72e4b9be37b3d089..ece1dfec984835f04793907078175d34e91cb034 100644
--- a/chromeos/dbus/fake_easy_unlock_client.cc
+++ b/chromeos/dbus/fake_easy_unlock_client.cc
@@ -21,7 +21,7 @@ const char kEc256PublicKeyKey[] = "ec_p256_public_key";
int ExtractKeyPairIndexFromKey(const std::string& key,
const std::string& key_type) {
JSONStringValueDeserializer deserializer(key);
- scoped_ptr<base::Value> json_value(deserializer.Deserialize(NULL, NULL));
+ scoped_ptr<base::Value> json_value = deserializer.Deserialize(NULL, NULL);
if (!json_value)
return -1;

Powered by Google App Engine
This is Rietveld 408576698