Index: chrome/browser/extensions/api/messaging/native_messaging_test_util.cc |
diff --git a/chrome/browser/extensions/api/messaging/native_messaging_test_util.cc b/chrome/browser/extensions/api/messaging/native_messaging_test_util.cc |
index 783b0b656b0b7558ede34d1bf66e2455ea50f42a..ebd91a7b10b56cdeb395db284e00c5d9eb4f126d 100644 |
--- a/chrome/browser/extensions/api/messaging/native_messaging_test_util.cc |
+++ b/chrome/browser/extensions/api/messaging/native_messaging_test_util.cc |
@@ -5,6 +5,7 @@ |
#include "chrome/browser/extensions/api/messaging/native_messaging_test_util.h" |
#include <memory> |
+#include <utility> |
#include "base/files/file_path.h" |
#include "base/json/json_file_value_serializer.h" |
@@ -37,7 +38,7 @@ void WriteTestNativeHostManifest(const base::FilePath& target_dir, |
std::unique_ptr<base::ListValue> origins(new base::ListValue()); |
origins->AppendString(base::StringPrintf( |
"chrome-extension://%s/", ScopedTestNativeMessagingHost::kExtensionId)); |
- manifest->Set("allowed_origins", origins.release()); |
+ manifest->Set("allowed_origins", std::move(origins)); |
base::FilePath manifest_path = target_dir.AppendASCII(host_name + ".json"); |
JSONFileValueSerializer serializer(manifest_path); |