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

Unified Diff: ios/chrome/browser/ui/ntp/google_landing_controller.mm

Issue 2774603002: Removes the IsReadingListEnabled flags (Closed)
Patch Set: Adjust indentation 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
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..ece58e4f6e0cf86c7cf7577ad37c5bd5108fa677 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"
@@ -1241,10 +1240,8 @@ void SearchEngineObserver::OnTemplateURLServiceChanged() {
if (!IsIPadIdiom()) {
ReadingListModel* readingListModel = nullptr;
sdefresne 2017/03/23 15:49:06 nit: merge the two lines
gambard 2017/03/23 15:53:16 Done.
- if (reading_list::switches::IsReadingListEnabled()) {
- readingListModel =
- ReadingListModelFactory::GetForBrowserState(_browserState);
- }
+ readingListModel =
+ ReadingListModelFactory::GetForBrowserState(_browserState);
// iPhone header also contains a toolbar since the normal toolbar is
// hidden.
[_headerView addToolbarWithDelegate:_webToolbarDelegate

Powered by Google App Engine
This is Rietveld 408576698