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

Unified Diff: remoting/host/pairing_registry_delegate_linux.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 todo about not failed trybot 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
« no previous file with comments | « google_apis/drive/test_util.cc ('k') | remoting/host/pairing_registry_delegate_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/pairing_registry_delegate_linux.cc
diff --git a/remoting/host/pairing_registry_delegate_linux.cc b/remoting/host/pairing_registry_delegate_linux.cc
index 7b22721e7cb54f78217806ae5b1956ee9dfccd08..cf5125505f9a1b411abefcee77593fc399780f79 100644
--- a/remoting/host/pairing_registry_delegate_linux.cc
+++ b/remoting/host/pairing_registry_delegate_linux.cc
@@ -49,8 +49,8 @@ scoped_ptr<base::ListValue> PairingRegistryDelegateLinux::LoadAll() {
JSONFileValueDeserializer deserializer(pairing_file);
int error_code;
std::string error_message;
- scoped_ptr<base::Value> pairing_json(
- deserializer.Deserialize(&error_code, &error_message));
+ scoped_ptr<base::Value> pairing_json =
+ deserializer.Deserialize(&error_code, &error_message);
if (!pairing_json) {
LOG(WARNING) << "Failed to load '" << pairing_file.value() << "' ("
<< error_code << ").";
@@ -88,8 +88,8 @@ PairingRegistry::Pairing PairingRegistryDelegateLinux::Load(
JSONFileValueDeserializer deserializer(pairing_file);
int error_code;
std::string error_message;
- scoped_ptr<base::Value> pairing(
- deserializer.Deserialize(&error_code, &error_message));
+ scoped_ptr<base::Value> pairing =
+ deserializer.Deserialize(&error_code, &error_message);
if (!pairing) {
LOG(WARNING) << "Failed to load pairing information: " << error_message
<< " (" << error_code << ").";
« no previous file with comments | « google_apis/drive/test_util.cc ('k') | remoting/host/pairing_registry_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698