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

Side by Side Diff: ios/chrome/browser/ui/reading_list/reading_list_side_swipe_provider.mm

Issue 2763233003: Move ReadingList model to components/reading_list/core (Closed)
Patch Set: feedback Created 3 years, 9 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/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
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
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/reading_list/reading_list_menu_notifier.mm ('k') | ios/chrome/browser/ui/side_swipe/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698