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

Unified Diff: extensions/browser/extension_error_test_util.h

Issue 1909773002: Convert //extensions/browser 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 | « extensions/browser/event_router_unittest.cc ('k') | extensions/browser/extension_error_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_error_test_util.h
diff --git a/extensions/browser/extension_error_test_util.h b/extensions/browser/extension_error_test_util.h
index 6ea2da65d449476a9cd18cbb05a13fa5fd16a1a9..1d5e272cf2ae1478e0838b4e3a3b19385e21b678 100644
--- a/extensions/browser/extension_error_test_util.h
+++ b/extensions/browser/extension_error_test_util.h
@@ -5,9 +5,9 @@
#ifndef EXTENSIONS_BROWSER_EXTENSION_ERROR_TEST_UTIL_H_
#define EXTENSIONS_BROWSER_EXTENSION_ERROR_TEST_UTIL_H_
+#include <memory>
#include <string>
-#include "base/memory/scoped_ptr.h"
namespace extensions {
@@ -16,17 +16,18 @@ class ExtensionError;
namespace error_test_util {
// Create a new RuntimeError.
-scoped_ptr<ExtensionError> CreateNewRuntimeError(
+std::unique_ptr<ExtensionError> CreateNewRuntimeError(
const std::string& extension_id,
const std::string& message,
bool from_incognito);
// Create a new RuntimeError; incognito defaults to "false".
-scoped_ptr<ExtensionError> CreateNewRuntimeError(
- const std::string& extension_id, const std::string& message);
+std::unique_ptr<ExtensionError> CreateNewRuntimeError(
+ const std::string& extension_id,
+ const std::string& message);
// Create a new ManifestError.
-scoped_ptr<ExtensionError> CreateNewManifestError(
+std::unique_ptr<ExtensionError> CreateNewManifestError(
const std::string& extension_id,
const std::string& message);
« no previous file with comments | « extensions/browser/event_router_unittest.cc ('k') | extensions/browser/extension_error_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698