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

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

Issue 2519483002: [ObjC ARC] Converts ios/public/provider/web:web to ARC.Automatically generated ARCMigrate commit… (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « ios/public/provider/web/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #if !defined(__has_feature) || !__has_feature(objc_arc)
8 #error "This file requires ARC support."
9 #endif
10
7 namespace ios { 11 namespace ios {
8 12
9 static WebControllerProviderFactory* g_web_controller_provider_factory; 13 static WebControllerProviderFactory* g_web_controller_provider_factory;
10 14
11 void SetWebControllerProviderFactory( 15 void SetWebControllerProviderFactory(
12 WebControllerProviderFactory* provider_factory) { 16 WebControllerProviderFactory* provider_factory) {
13 g_web_controller_provider_factory = provider_factory; 17 g_web_controller_provider_factory = provider_factory;
14 } 18 }
15 19
16 WebControllerProviderFactory* GetWebControllerProviderFactory() { 20 WebControllerProviderFactory* GetWebControllerProviderFactory() {
(...skipping 28 matching lines...) Expand all
45 } 49 }
46 50
47 std::unique_ptr<WebControllerProvider> 51 std::unique_ptr<WebControllerProvider>
48 WebControllerProviderFactory::CreateWebControllerProvider( 52 WebControllerProviderFactory::CreateWebControllerProvider(
49 web::BrowserState* browser_state) { 53 web::BrowserState* browser_state) {
50 return std::unique_ptr<WebControllerProvider>( 54 return std::unique_ptr<WebControllerProvider>(
51 new WebControllerProvider(browser_state)); 55 new WebControllerProvider(browser_state));
52 } 56 }
53 57
54 } // namespace ios 58 } // namespace ios
OLDNEW
« no previous file with comments | « ios/public/provider/web/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698