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

Unified Diff: chrome/common/extensions/extension_test_util.cc

Issue 1880143002: Convert chrome/common 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 | « chrome/common/extensions/command_unittest.cc ('k') | chrome/common/extensions/feature_switch_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_test_util.cc
diff --git a/chrome/common/extensions/extension_test_util.cc b/chrome/common/extensions/extension_test_util.cc
index 697be603c4bc0e2d03eb2bccbb2b1403ffc8c32f..e3f0cc40770e3f89f2ccefedab9d36d51376a09c 100644
--- a/chrome/common/extensions/extension_test_util.cc
+++ b/chrome/common/extensions/extension_test_util.cc
@@ -4,6 +4,8 @@
#include "chrome/common/extensions/extension_test_util.h"
+#include <memory>
+
#include "base/files/file_path.h"
#include "base/json/json_file_value_serializer.h"
#include "base/path_service.h"
@@ -31,7 +33,7 @@ scoped_refptr<Extension> LoadManifestUnchecked(const std::string& dir,
.AppendASCII(test_file);
JSONFileValueDeserializer deserializer(path);
- scoped_ptr<base::Value> result = deserializer.Deserialize(NULL, error);
+ std::unique_ptr<base::Value> result = deserializer.Deserialize(NULL, error);
if (!result)
return NULL;
const base::DictionaryValue* dict;
« no previous file with comments | « chrome/common/extensions/command_unittest.cc ('k') | chrome/common/extensions/feature_switch_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698