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

Side by Side Diff: ios/web/web_state/ui/crw_wk_navigation_states.mm

Issue 2901633002: Replaced NavigationContext::IsErrorPage with NavigationContext::GetError (Closed)
Patch Set: Created 3 years, 7 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 #import "ios/web/web_state/ui/crw_wk_navigation_states.h" 5 #import "ios/web/web_state/ui/crw_wk_navigation_states.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ios/web/web_state/navigation_context_impl.h" 8 #import "ios/web/web_state/navigation_context_impl.h"
9 9
10 #if !defined(__has_feature) || !__has_feature(objc_arc) 10 #if !defined(__has_feature) || !__has_feature(objc_arc)
11 #error "This file requires ARC support." 11 #error "This file requires ARC support."
12 #endif 12 #endif
13 13
14 // Holds a pair of state and creation order index. 14 // Holds a pair of state and creation order index.
15 @interface CRWWKNavigationsStateRecord : NSObject { 15 @interface CRWWKNavigationsStateRecord : NSObject {
16 // Backs up |context| property. 16 // Backs up |context| property.
17 std::unique_ptr<web::NavigationContextImpl> _context; 17 std::unique_ptr<web::NavigationContextImpl> _context;
18 } 18 }
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 } 199 }
200 } 200 }
201 201
202 if (*outNavigation == _nullNavigation) { 202 if (*outNavigation == _nullNavigation) {
203 // |_nullNavigation| is a key for storing null navigations. 203 // |_nullNavigation| is a key for storing null navigations.
204 *outNavigation = nil; 204 *outNavigation = nil;
205 } 205 }
206 } 206 }
207 207
208 @end 208 @end
OLDNEW
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.mm ('k') | ios/web/web_state/ui/crw_wk_navigation_states_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698