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

Unified Diff: chrome/browser/chromeos/login/supervised/supervised_user_authentication.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: 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 389dcc5de8a04e8d9321ab68648efaf25d758a04..74856040c8920487340ed91e96a340a85f126cd4 100644
--- a/chrome/browser/chromeos/login/supervised/supervised_user_authentication.cc
+++ b/chrome/browser/chromeos/login/supervised/supervised_user_authentication.cc
@@ -58,8 +58,8 @@ base::DictionaryValue* LoadPasswordData(base::FilePath profile_dir) {
profile_dir.Append(kPasswordUpdateFile));
std::string error_message;
int error_code = JSONFileValueDeserializer::JSON_NO_ERROR;
- scoped_ptr<base::Value> value(
- deserializer.Deserialize(&error_code, &error_message));
+ scoped_ptr<base::Value> value =
+ deserializer.Deserialize(&error_code, &error_message);
if (JSONFileValueDeserializer::JSON_NO_ERROR != error_code) {
LOG(ERROR) << "Could not deserialize password data, error = " << error_code
<< " / " << error_message;

Powered by Google App Engine
This is Rietveld 408576698