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

Side by Side Diff: ios/chrome/browser/share_extension/share_extension_service_factory.h

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add header 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 IOS_CHROME_BROWSER_SHARE_EXTENSION_SHARE_EXTENSION_SERVICE_FACTORY_H_ 5 #ifndef IOS_CHROME_BROWSER_SHARE_EXTENSION_SHARE_EXTENSION_SERVICE_FACTORY_H_
6 #define IOS_CHROME_BROWSER_SHARE_EXTENSION_SHARE_EXTENSION_SERVICE_FACTORY_H_ 6 #define IOS_CHROME_BROWSER_SHARE_EXTENSION_SHARE_EXTENSION_SERVICE_FACTORY_H_
7 7
noyau (Ping after 24h) 2016/04/07 13:34:05 #include <memory>
8 #include "components/keyed_service/ios/browser_state_keyed_service_factory.h" 8 #include "components/keyed_service/ios/browser_state_keyed_service_factory.h"
9 9
10 namespace base { 10 namespace base {
11 template <typename T> 11 template <typename T>
12 struct DefaultSingletonTraits; 12 struct DefaultSingletonTraits;
13 } // namespace base 13 } // namespace base
14 14
15 class ShareExtensionService; 15 class ShareExtensionService;
16 16
17 namespace ios { 17 namespace ios {
(...skipping 10 matching lines...) Expand all
28 ios::ChromeBrowserState* browser_state); 28 ios::ChromeBrowserState* browser_state);
29 static ShareExtensionServiceFactory* GetInstance(); 29 static ShareExtensionServiceFactory* GetInstance();
30 30
31 private: 31 private:
32 friend struct base::DefaultSingletonTraits<ShareExtensionServiceFactory>; 32 friend struct base::DefaultSingletonTraits<ShareExtensionServiceFactory>;
33 33
34 ShareExtensionServiceFactory(); 34 ShareExtensionServiceFactory();
35 ~ShareExtensionServiceFactory() override; 35 ~ShareExtensionServiceFactory() override;
36 36
37 // BrowserStateKeyedServiceFactory implementation. 37 // BrowserStateKeyedServiceFactory implementation.
38 scoped_ptr<KeyedService> BuildServiceInstanceFor( 38 std::unique_ptr<KeyedService> BuildServiceInstanceFor(
39 web::BrowserState* context) const override; 39 web::BrowserState* context) const override;
40 web::BrowserState* GetBrowserStateToUse( 40 web::BrowserState* GetBrowserStateToUse(
41 web::BrowserState* context) const override; 41 web::BrowserState* context) const override;
42 42
43 DISALLOW_COPY_AND_ASSIGN(ShareExtensionServiceFactory); 43 DISALLOW_COPY_AND_ASSIGN(ShareExtensionServiceFactory);
44 }; 44 };
45 45
46 #endif // IOS_CHROME_BROWSER_SHARE_EXTENSION_SHARE_EXTENSION_SERVICE_FACTORY_H_ 46 #endif // IOS_CHROME_BROWSER_SHARE_EXTENSION_SHARE_EXTENSION_SERVICE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698