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

Unified Diff: ios/chrome/browser/ui/tab_switcher/tab_switcher_model.mm

Issue 2612773002: [ios] Style cleanups in tab switcher code.
Patch Set: Created 3 years, 11 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/tab_switcher/tab_switcher_model.mm
diff --git a/ios/chrome/browser/ui/tab_switcher/tab_switcher_model.mm b/ios/chrome/browser/ui/tab_switcher/tab_switcher_model.mm
index 3024a2f47be5bccf8547f597ede9e5f1f102ad2c..b27f8b1b0110ee2eeadf661ddebec5fae682796f 100644
--- a/ios/chrome/browser/ui/tab_switcher/tab_switcher_model.mm
+++ b/ios/chrome/browser/ui/tab_switcher/tab_switcher_model.mm
@@ -149,8 +149,7 @@ void FillSetUsingSessions(synced_sessions::SyncedSessions const& sessions,
}
- (TabModel*)tabModelForSessionOfType:(TabSwitcherSessionType)type {
- DCHECK(type == TabSwitcherSessionType::OFF_THE_RECORD_SESSION ||
- type == TabSwitcherSessionType::REGULAR_SESSION);
+ DCHECK(TabSwitcherSessionTypeIsLocalSession(type));
return type == TabSwitcherSessionType::OFF_THE_RECORD_SESSION ? _otrTabModel
: _mainTabModel;
}

Powered by Google App Engine
This is Rietveld 408576698