Chromium Code Reviews| 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 |