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

Unified Diff: ios/chrome/browser/tabs/tab_helper_util.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/tabs/tab.mm ('k') | ios/chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/tabs/tab_helper_util.mm
diff --git a/ios/chrome/browser/tabs/tab_helper_util.mm b/ios/chrome/browser/tabs/tab_helper_util.mm
index 4d5493066b3e6da1f486a020ce602dca942b7f27..e277601ebf32c8093f82f5632280b2ec6a4511e6 100644
--- a/ios/chrome/browser/tabs/tab_helper_util.mm
+++ b/ios/chrome/browser/tabs/tab_helper_util.mm
@@ -12,7 +12,6 @@
#include "components/history/core/browser/top_sites.h"
#import "components/history/ios/browser/web_state_top_sites_observer.h"
#include "components/keyed_service/core/service_access_type.h"
-#include "components/reading_list/core/reading_list_switches.h"
#import "components/signin/ios/browser/account_consistency_service.h"
#include "ios/chrome/browser/bookmarks/bookmark_model_factory.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
@@ -56,11 +55,9 @@ void AttachTabHelpers(web::WebState* web_state) {
FindTabHelper::CreateForWebState(web_state, tab.findInPageControllerDelegate);
StoreKitTabHelper::CreateForWebState(web_state);
- if (reading_list::switches::IsReadingListEnabled()) {
- ReadingListModel* model =
- ReadingListModelFactory::GetForBrowserState(browser_state);
- ReadingListWebStateObserver::FromWebState(web_state, model);
- }
+ ReadingListModel* model =
+ ReadingListModelFactory::GetForBrowserState(browser_state);
+ ReadingListWebStateObserver::FromWebState(web_state, model);
if (AccountConsistencyService* account_consistency_service =
ios::AccountConsistencyServiceFactory::GetForBrowserState(
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698