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

Unified Diff: components/test_runner/tracked_dictionary.cc

Issue 1921923002: Convert //components/[o-t]* 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
« no previous file with comments | « components/test_runner/tracked_dictionary.h ('k') | components/test_runner/web_frame_test_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/tracked_dictionary.cc
diff --git a/components/test_runner/tracked_dictionary.cc b/components/test_runner/tracked_dictionary.cc
index 5b78ea0feabdd4e7867a2f22491a1355e2f9a7c8..2903f6156805a6ee09e38a8a30c92162b379ae08 100644
--- a/components/test_runner/tracked_dictionary.cc
+++ b/components/test_runner/tracked_dictionary.cc
@@ -6,6 +6,8 @@
#include <utility>
+#include "base/memory/ptr_util.h"
+
namespace test_runner {
TrackedDictionary::TrackedDictionary() {}
@@ -25,7 +27,7 @@ void TrackedDictionary::ApplyUntrackedChanges(
}
void TrackedDictionary::Set(const std::string& path,
- scoped_ptr<base::Value> new_value) {
+ std::unique_ptr<base::Value> new_value) {
// Is this truly a *new* value?
const base::Value* old_value;
if (current_values_.Get(path, &old_value)) {
@@ -38,12 +40,12 @@ void TrackedDictionary::Set(const std::string& path,
}
void TrackedDictionary::SetBoolean(const std::string& path, bool new_value) {
- Set(path, make_scoped_ptr(new base::FundamentalValue(new_value)));
+ Set(path, base::WrapUnique(new base::FundamentalValue(new_value)));
}
void TrackedDictionary::SetString(const std::string& path,
const std::string& new_value) {
- Set(path, make_scoped_ptr(new base::StringValue(new_value)));
+ Set(path, base::WrapUnique(new base::StringValue(new_value)));
}
} // namespace test_runner
« no previous file with comments | « components/test_runner/tracked_dictionary.h ('k') | components/test_runner/web_frame_test_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698