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

Unified Diff: chromeos/network/onc/onc_validator.cc

Issue 2911033002: Remove raw base::DictionaryValue::Set (Closed)
Patch Set: Proper Windows Fix Created 3 years, 6 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/network/onc/onc_validator.cc
diff --git a/chromeos/network/onc/onc_validator.cc b/chromeos/network/onc/onc_validator.cc
index 3bb988a569c0727e555a10c692136d24759ef310..f0dde186263a7b696d37b57d56b910d92a9f4039 100644
--- a/chromeos/network/onc/onc_validator.cc
+++ b/chromeos/network/onc/onc_validator.cc
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <algorithm>
+#include <utility>
#include "base/json/json_writer.h"
#include "base/logging.h"
@@ -284,7 +285,7 @@ bool Validator::ValidateRecommendedField(
repaired_recommended->AppendString(field_name);
}
- result->Set(::onc::kRecommended, repaired_recommended.release());
+ result->Set(::onc::kRecommended, std::move(repaired_recommended));
return true;
}
« no previous file with comments | « chromeos/network/network_configuration_handler_unittest.cc ('k') | components/cloud_devices/common/description_items_inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698