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

Unified Diff: ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.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
« no previous file with comments | « no previous file | ios/chrome/browser/ui/tab_switcher/tab_switcher_model.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm
diff --git a/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm b/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm
index 6fb47212d832b8ef2bf2c3d8be957786a0c7ed75..92e76d1c9811eb9af4bb3c35aeff72cfea730962 100644
--- a/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm
+++ b/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm
@@ -1003,11 +1003,16 @@ enum class SnapshotViewOption {
}
- (void)localSessionMayNeedUpdate:(TabSwitcherSessionType)type {
- if (type == TabSwitcherSessionType::REGULAR_SESSION) {
- [_onTheRecordSession updateCollectionViewIfNeeded];
- } else {
- DCHECK(type == TabSwitcherSessionType::OFF_THE_RECORD_SESSION);
- [_offTheRecordSession updateCollectionViewIfNeeded];
+ switch (type) {
+ case TabSwitcherSessionType::REGULAR_SESSION:
+ [_onTheRecordSession updateCollectionViewIfNeeded];
+ break;
+ case TabSwitcherSessionType::OFF_THE_RECORD_SESSION:
+ [_offTheRecordSession updateCollectionViewIfNeeded];
+ break;
+ case TabSwitcherSessionType::DISTANT_SESSION:
+ NOTREACHED();
+ break;
}
}
« no previous file with comments | « no previous file | ios/chrome/browser/ui/tab_switcher/tab_switcher_model.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698