| 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 #import "ios/chrome/browser/ui/reading_list/reading_list_side_swipe_provider.h" | 5 #import "ios/chrome/browser/ui/reading_list/reading_list_side_swipe_provider.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "components/reading_list/ios/reading_list_entry.h" | 8 #include "components/reading_list/core/reading_list_entry.h" |
| 9 #include "components/reading_list/ios/reading_list_model.h" | 9 #include "components/reading_list/core/reading_list_model.h" |
| 10 #include "ios/web/public/web_state/web_state.h" | 10 #include "ios/web/public/web_state/web_state.h" |
| 11 #include "net/base/network_change_notifier.h" | 11 #include "net/base/network_change_notifier.h" |
| 12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 13 | 13 |
| 14 #if !defined(__has_feature) || !__has_feature(objc_arc) | 14 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 15 #error "This file requires ARC support." | 15 #error "This file requires ARC support." |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 class ReadingListObserverBridge; | 18 class ReadingListObserverBridge; |
| 19 | 19 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 } | 58 } |
| 59 const ReadingListEntry* firstEntry = _readingListModel->GetFirstUnreadEntry( | 59 const ReadingListEntry* firstEntry = _readingListModel->GetFirstUnreadEntry( |
| 60 net::NetworkChangeNotifier::IsOffline()); | 60 net::NetworkChangeNotifier::IsOffline()); |
| 61 DCHECK(firstEntry); | 61 DCHECK(firstEntry); |
| 62 web::NavigationManager::WebLoadParams params(firstEntry->URL()); | 62 web::NavigationManager::WebLoadParams params(firstEntry->URL()); |
| 63 params.transition_type = ui::PageTransition::PAGE_TRANSITION_AUTO_BOOKMARK; | 63 params.transition_type = ui::PageTransition::PAGE_TRANSITION_AUTO_BOOKMARK; |
| 64 webState->GetNavigationManager()->LoadURLWithParams(params); | 64 webState->GetNavigationManager()->LoadURLWithParams(params); |
| 65 } | 65 } |
| 66 | 66 |
| 67 @end | 67 @end |
| OLD | NEW |