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

Unified Diff: ios/chrome/browser/ui/ntp/google_landing_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/ntp/BUILD.gn ('k') | ios/chrome/browser/ui/reading_list/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/ntp/google_landing_controller.mm
diff --git a/ios/chrome/browser/ui/ntp/google_landing_controller.mm b/ios/chrome/browser/ui/ntp/google_landing_controller.mm
index 96b6901c9439088c6cffaac5c5a85201867a2b81..108372f2aedeed57e435b62192f0883d32855b8e 100644
--- a/ios/chrome/browser/ui/ntp/google_landing_controller.mm
+++ b/ios/chrome/browser/ui/ntp/google_landing_controller.mm
@@ -22,7 +22,6 @@
#include "components/ntp_tiles/most_visited_sites.h"
#include "components/ntp_tiles/ntp_tile.h"
#include "components/rappor/rappor_service_impl.h"
-#include "components/reading_list/core/reading_list_switches.h"
#include "components/search_engines/template_url_service.h"
#include "components/search_engines/template_url_service_observer.h"
#include "components/strings/grit/components_strings.h"
@@ -1240,11 +1239,8 @@ void SearchEngineObserver::OnTemplateURLServiceChanged() {
[_headerView addViewsToSearchField:_searchTapTarget];
if (!IsIPadIdiom()) {
- ReadingListModel* readingListModel = nullptr;
- if (reading_list::switches::IsReadingListEnabled()) {
- readingListModel =
- ReadingListModelFactory::GetForBrowserState(_browserState);
- }
+ ReadingListModel* readingListModel =
+ ReadingListModelFactory::GetForBrowserState(_browserState);
// iPhone header also contains a toolbar since the normal toolbar is
// hidden.
[_headerView addToolbarWithDelegate:_webToolbarDelegate
« no previous file with comments | « ios/chrome/browser/ui/ntp/BUILD.gn ('k') | ios/chrome/browser/ui/reading_list/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698