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

Unified Diff: chrome/browser/extensions/extension_prefs_unittest.cc

Issue 2806283002: Revert of Stop passing raw pointers to base::Value API in c/b/chromeos and c/b/extensions (Closed)
Patch Set: Created 3 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: chrome/browser/extensions/extension_prefs_unittest.cc
diff --git a/chrome/browser/extensions/extension_prefs_unittest.cc b/chrome/browser/extensions/extension_prefs_unittest.cc
index a8f300bf640964ebf5713434d1d9a99839aba153..ba014668a4bb0d7a3eb2e053b4a3e7315b5c6d91 100644
--- a/chrome/browser/extensions/extension_prefs_unittest.cc
+++ b/chrome/browser/extensions/extension_prefs_unittest.cc
@@ -3,8 +3,6 @@
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_prefs_unittest.h"
-
-#include <utility>
#include "base/files/scoped_temp_dir.h"
#include "base/path_service.h"
@@ -574,7 +572,7 @@
manifest.SetString(manifest_keys::kVersion, "0.2");
std::unique_ptr<base::ListValue> scripts(new base::ListValue);
scripts->AppendString("test.js");
- manifest.Set(manifest_keys::kBackgroundScripts, std::move(scripts));
+ manifest.Set(manifest_keys::kBackgroundScripts, scripts.release());
base::FilePath path =
prefs_.extensions_dir().AppendASCII("test_0.2");
std::string errors;
« no previous file with comments | « chrome/browser/extensions/extension_override_apitest.cc ('k') | chrome/browser/extensions/extension_protocols_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698