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

Unified Diff: sync/js/js_test_util.cc

Issue 1866243002: Convert //sync 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
Index: sync/js/js_test_util.cc
diff --git a/sync/js/js_test_util.cc b/sync/js/js_test_util.cc
index 268ecf8260b125f23dcdf3b5ab0b5345aaf24ec1..eafe0978783444cccfefed79e049858c9dcbcd50 100644
--- a/sync/js/js_test_util.cc
+++ b/sync/js/js_test_util.cc
@@ -4,8 +4,9 @@
#include "sync/js/js_test_util.h"
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "sync/js/js_event_details.h"
namespace syncer {
@@ -55,7 +56,7 @@ class HasDetailsMatcher
::testing::Matcher<const JsEventDetails&> HasDetailsAsDictionary(
const base::DictionaryValue& expected_details) {
- scoped_ptr<base::DictionaryValue> expected_details_copy(
+ std::unique_ptr<base::DictionaryValue> expected_details_copy(
expected_details.DeepCopy());
return HasDetails(JsEventDetails(expected_details_copy.get()));
}

Powered by Google App Engine
This is Rietveld 408576698