| OLD | NEW |
| 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 // ====== New Architecture ===== | 5 // ====== New Architecture ===== |
| 6 // = This code is only used in the new iOS Chrome architecture. = | 6 // = This code is only used in the new iOS Chrome architecture. = |
| 7 // ============================================================================ | 7 // ============================================================================ |
| 8 | 8 |
| 9 #import "ios/chrome/browser/ui/web_contents/web_contents_view_controller.h" | 9 #import "ios/clean/chrome/browser/ui/web_contents/web_contents_view_controller.h
" |
| 10 | 10 |
| 11 #import "ios/web/public/navigation_manager.h" | 11 #import "ios/web/public/navigation_manager.h" |
| 12 #include "ios/web/public/web_state/web_state.h" | 12 #include "ios/web/public/web_state/web_state.h" |
| 13 #include "ui/base/page_transition_types.h" | 13 #include "ui/base/page_transition_types.h" |
| 14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 #if !defined(__has_feature) || !__has_feature(objc_arc) | 16 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 17 #error "This file requires ARC support." | 17 #error "This file requires ARC support." |
| 18 #endif | 18 #endif |
| 19 | 19 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 47 | 47 |
| 48 if (!self.webState->GetNavigationManager()->GetItemCount()) { | 48 if (!self.webState->GetNavigationManager()->GetItemCount()) { |
| 49 web::NavigationManager::WebLoadParams params( | 49 web::NavigationManager::WebLoadParams params( |
| 50 GURL("https://dev.chromium.org/")); | 50 GURL("https://dev.chromium.org/")); |
| 51 params.transition_type = ui::PAGE_TRANSITION_TYPED; | 51 params.transition_type = ui::PAGE_TRANSITION_TYPED; |
| 52 _webState->GetNavigationManager()->LoadURLWithParams(params); | 52 _webState->GetNavigationManager()->LoadURLWithParams(params); |
| 53 } | 53 } |
| 54 } | 54 } |
| 55 | 55 |
| 56 @end | 56 @end |
| OLD | NEW |