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

Unified Diff: ios/chrome/browser/ui/side_swipe/side_swipe_controller.mm

Issue 2774603002: Removes the IsReadingListEnabled flags (Closed)
Patch Set: fix tests 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/ui/side_swipe/BUILD.gn ('k') | ios/chrome/browser/ui/toolbar/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/side_swipe/side_swipe_controller.mm
diff --git a/ios/chrome/browser/ui/side_swipe/side_swipe_controller.mm b/ios/chrome/browser/ui/side_swipe/side_swipe_controller.mm
index 270b41363fdf14b138e7760cb64662b46b8f63ea..b95f7714ed6201ef6ad4727f4bc663adf09b4239 100644
--- a/ios/chrome/browser/ui/side_swipe/side_swipe_controller.mm
+++ b/ios/chrome/browser/ui/side_swipe/side_swipe_controller.mm
@@ -8,7 +8,6 @@
#import "base/ios/weak_nsobject.h"
#include "components/reading_list/core/reading_list_model.h"
-#include "components/reading_list/core/reading_list_switches.h"
#import "ios/chrome/browser/browser_state/chrome_browser_state.h"
#import "ios/chrome/browser/infobars/infobar_container_view.h"
#import "ios/chrome/browser/reading_list/reading_list_model_factory.h"
@@ -123,11 +122,9 @@ const NSUInteger kIpadGreySwipeTabCount = 8;
historySideSwipeProvider_.reset(
[[HistorySideSwipeProvider alloc] initWithTabModel:model_]);
- if (reading_list::switches::IsReadingListEnabled()) {
- readingListSideSwipeProvider_.reset([[ReadingListSideSwipeProvider alloc]
- initWithReadingList:ReadingListModelFactory::GetForBrowserState(
- browserState)]);
- }
+ readingListSideSwipeProvider_.reset([[ReadingListSideSwipeProvider alloc]
+ initWithReadingList:ReadingListModelFactory::GetForBrowserState(
+ browserState)]);
}
return self;
}
« no previous file with comments | « ios/chrome/browser/ui/side_swipe/BUILD.gn ('k') | ios/chrome/browser/ui/toolbar/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698