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

Side by Side Diff: ios/public/provider/web/web_controller_provider.mm

Issue 1861593005: Convert //ios 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "ios/public/provider/web/web_controller_provider.h" 5 #include "ios/public/provider/web/web_controller_provider.h"
6 6
7 namespace ios { 7 namespace ios {
8 8
9 static WebControllerProviderFactory* g_web_controller_provider_factory; 9 static WebControllerProviderFactory* g_web_controller_provider_factory;
10 10
(...skipping 25 matching lines...) Expand all
36 if (completion) 36 if (completion)
37 completion(nil, nil); 37 completion(nil, nil);
38 } 38 }
39 39
40 WebControllerProviderFactory::WebControllerProviderFactory() { 40 WebControllerProviderFactory::WebControllerProviderFactory() {
41 } 41 }
42 42
43 WebControllerProviderFactory::~WebControllerProviderFactory() { 43 WebControllerProviderFactory::~WebControllerProviderFactory() {
44 } 44 }
45 45
46 scoped_ptr<WebControllerProvider> 46 std::unique_ptr<WebControllerProvider>
47 WebControllerProviderFactory::CreateWebControllerProvider( 47 WebControllerProviderFactory::CreateWebControllerProvider(
48 web::BrowserState* browser_state) { 48 web::BrowserState* browser_state) {
49 return scoped_ptr<WebControllerProvider>( 49 return std::unique_ptr<WebControllerProvider>(
50 new WebControllerProvider(browser_state)); 50 new WebControllerProvider(browser_state));
51 } 51 }
52 52
53 } // namespace ios 53 } // namespace ios
OLDNEW
« no previous file with comments | « ios/public/provider/web/web_controller_provider.h ('k') | ios/web/active_state_manager_impl_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698