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

Side by Side Diff: components/dom_distiller/ios/distiller_page_factory_ios.mm

Issue 2932353002: [ObjC ARC] Converts components/dom_distiller/ios:ios to ARC. (Closed)
Patch Set: Created 3 years, 6 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 "components/dom_distiller/ios/distiller_page_factory_ios.h" 5 #include "components/dom_distiller/ios/distiller_page_factory_ios.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "components/dom_distiller/ios/distiller_page_ios.h" 8 #include "components/dom_distiller/ios/distiller_page_ios.h"
9 #include "ios/web/public/browser_state.h" 9 #include "ios/web/public/browser_state.h"
10 10
11 #if !defined(__has_feature) || !__has_feature(objc_arc)
12 #error "This file requires ARC support."
13 #endif
14
11 namespace dom_distiller { 15 namespace dom_distiller {
12 16
13 DistillerPageFactoryIOS::DistillerPageFactoryIOS( 17 DistillerPageFactoryIOS::DistillerPageFactoryIOS(
14 web::BrowserState* browser_state) 18 web::BrowserState* browser_state)
15 : browser_state_(browser_state) {} 19 : browser_state_(browser_state) {}
16 20
17 DistillerPageFactoryIOS::~DistillerPageFactoryIOS() {} 21 DistillerPageFactoryIOS::~DistillerPageFactoryIOS() {}
18 22
19 std::unique_ptr<DistillerPage> DistillerPageFactoryIOS::CreateDistillerPage( 23 std::unique_ptr<DistillerPage> DistillerPageFactoryIOS::CreateDistillerPage(
20 const gfx::Size& view_size) const { 24 const gfx::Size& view_size) const {
21 return base::MakeUnique<DistillerPageIOS>(browser_state_); 25 return base::MakeUnique<DistillerPageIOS>(browser_state_);
22 } 26 }
23 27
24 std::unique_ptr<DistillerPage> 28 std::unique_ptr<DistillerPage>
25 DistillerPageFactoryIOS::CreateDistillerPageWithHandle( 29 DistillerPageFactoryIOS::CreateDistillerPageWithHandle(
26 std::unique_ptr<SourcePageHandle> handle) const { 30 std::unique_ptr<SourcePageHandle> handle) const {
27 return base::MakeUnique<DistillerPageIOS>(browser_state_); 31 return base::MakeUnique<DistillerPageIOS>(browser_state_);
28 } 32 }
29 33
30 } // namespace dom_distiller 34 } // namespace dom_distiller
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698