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

Side by Side Diff: ios/web/interstitials/web_interstitial_impl.mm

Issue 2202623002: Converts parts of ios/web to ARC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed extra release Created 4 years, 4 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 #import "ios/web/interstitials/web_interstitial_impl.h" 5 #import "ios/web/interstitials/web_interstitial_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ios/web/interstitials/web_interstitial_facade_delegate.h" 8 #include "ios/web/interstitials/web_interstitial_facade_delegate.h"
9 #include "ios/web/navigation/crw_session_controller.h" 9 #include "ios/web/navigation/crw_session_controller.h"
10 #include "ios/web/navigation/navigation_manager_impl.h" 10 #include "ios/web/navigation/navigation_manager_impl.h"
11 #include "ios/web/public/interstitials/web_interstitial_delegate.h" 11 #include "ios/web/public/interstitials/web_interstitial_delegate.h"
12 #import "ios/web/public/navigation_manager.h" 12 #import "ios/web/public/navigation_manager.h"
13 #include "ios/web/web_state/web_state_impl.h" 13 #include "ios/web/web_state/web_state_impl.h"
14 14
15 #if !defined(__has_feature) || !__has_feature(objc_arc)
16 #error "This file requires ARC support."
17 #endif
18
15 namespace web { 19 namespace web {
16 20
17 // static 21 // static
18 WebInterstitial* WebInterstitial::GetWebInterstitial(web::WebState* web_state) { 22 WebInterstitial* WebInterstitial::GetWebInterstitial(web::WebState* web_state) {
19 return web_state->GetWebInterstitial(); 23 return web_state->GetWebInterstitial();
20 } 24 }
21 25
22 WebInterstitialImpl::WebInterstitialImpl(WebStateImpl* web_state, 26 WebInterstitialImpl::WebInterstitialImpl(WebStateImpl* web_state,
23 bool new_navigation, 27 bool new_navigation,
24 const GURL& url) 28 const GURL& url)
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 103
100 void WebInterstitialImpl::WebStateDestroyed() { 104 void WebInterstitialImpl::WebStateDestroyed() {
101 DontProceed(); 105 DontProceed();
102 } 106 }
103 107
104 WebStateImpl* WebInterstitialImpl::GetWebStateImpl() const { 108 WebStateImpl* WebInterstitialImpl::GetWebStateImpl() const {
105 return static_cast<web::WebStateImpl*>(web_state()); 109 return static_cast<web::WebStateImpl*>(web_state());
106 } 110 }
107 111
108 } // namespace web 112 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698