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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_EXTENSION_ERROR_TEST_UTIL_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_ERROR_TEST_UTIL_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_ERROR_TEST_UTIL_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_ERROR_TEST_UTIL_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/memory/scoped_ptr.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 class ExtensionError; 14 class ExtensionError;
15 15
16 namespace error_test_util { 16 namespace error_test_util {
17 17
18 // Create a new RuntimeError. 18 // Create a new RuntimeError.
19 scoped_ptr<ExtensionError> CreateNewRuntimeError( 19 std::unique_ptr<ExtensionError> CreateNewRuntimeError(
20 const std::string& extension_id, 20 const std::string& extension_id,
21 const std::string& message, 21 const std::string& message,
22 bool from_incognito); 22 bool from_incognito);
23 23
24 // Create a new RuntimeError; incognito defaults to "false". 24 // Create a new RuntimeError; incognito defaults to "false".
25 scoped_ptr<ExtensionError> CreateNewRuntimeError( 25 std::unique_ptr<ExtensionError> CreateNewRuntimeError(
26 const std::string& extension_id, const std::string& message);
27
28 // Create a new ManifestError.
29 scoped_ptr<ExtensionError> CreateNewManifestError(
30 const std::string& extension_id, 26 const std::string& extension_id,
31 const std::string& message); 27 const std::string& message);
32 28
29 // Create a new ManifestError.
30 std::unique_ptr<ExtensionError> CreateNewManifestError(
31 const std::string& extension_id,
32 const std::string& message);
33
33 } // namespace error_test_util 34 } // namespace error_test_util
34 } // namespace extensions 35 } // namespace extensions
35 36
36 #endif // EXTENSIONS_BROWSER_EXTENSION_ERROR_TEST_UTIL_H_ 37 #endif // EXTENSIONS_BROWSER_EXTENSION_ERROR_TEST_UTIL_H_
OLDNEW
« 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