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

Side by Side Diff: extensions/shell/browser/shell_prefs.h

Issue 1908953003: Convert //extensions/{common,shell} from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? 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_SHELL_BROWSER_SHELL_PREFS_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9 9
10 class PrefService; 10 class PrefService;
11 11
12 namespace base { 12 namespace base {
13 class FilePath; 13 class FilePath;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 class BrowserContext; 17 class BrowserContext;
18 } 18 }
19 19
20 namespace extensions { 20 namespace extensions {
21 21
22 // Support for preference initialization and management. 22 // Support for preference initialization and management.
23 namespace shell_prefs { 23 namespace shell_prefs {
24 24
25 // Creates a pref service for device-wide preferences stored in |data_dir|. 25 // Creates a pref service for device-wide preferences stored in |data_dir|.
26 scoped_ptr<PrefService> CreateLocalState(const base::FilePath& data_dir); 26 std::unique_ptr<PrefService> CreateLocalState(const base::FilePath& data_dir);
27 27
28 // Creates a pref service that loads user preferences for |browser_context|. 28 // Creates a pref service that loads user preferences for |browser_context|.
29 scoped_ptr<PrefService> CreateUserPrefService( 29 std::unique_ptr<PrefService> CreateUserPrefService(
30 content::BrowserContext* browser_context); 30 content::BrowserContext* browser_context);
31 31
32 } // namespace shell_prefs 32 } // namespace shell_prefs
33 33
34 } // namespace extensions 34 } // namespace extensions
35 35
36 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_ 36 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_network_controller_chromeos.cc ('k') | extensions/shell/browser/shell_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698