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

Unified Diff: ios/chrome/browser/ui/main/browser_view_wrangler.mm

Issue 2660143002: Removing iPad Tab Switcher experimental flag. (Closed)
Patch Set: Rebased. Created 3 years, 10 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/ui/main/browser_view_wrangler.h ('k') | ios/chrome/browser/ui/no_tabs/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/main/browser_view_wrangler.mm
diff --git a/ios/chrome/browser/ui/main/browser_view_wrangler.mm b/ios/chrome/browser/ui/main/browser_view_wrangler.mm
index d0bc024d2b485a221677aeddb5a3ad7512b20618..8f2ef97dcbe5316eada14799dc9c10b8767d3fe8 100644
--- a/ios/chrome/browser/ui/main/browser_view_wrangler.mm
+++ b/ios/chrome/browser/ui/main/browser_view_wrangler.mm
@@ -212,16 +212,6 @@
[self updateDeviceSharingManager];
}
-// Called when the number of tabs changes. Updates the switcher button
-// visibility in the various modes on tablet.
-- (void)tabModelDidChangeTabCount:(TabModel*)notifiedTabModel {
- // If in tablet, update the mode switcher icon based on the number of tabs
- // in the incognito tab strip. Doing this all the time simplifies a lot
- // of the state transition logic and setting the property to the same value
- // incurs no re-layout penalty.
- [self updateModeToggle];
-}
-
#pragma mark - Other public methods
- (void)updateDeviceSharingManager {
@@ -291,13 +281,6 @@
}
}
-- (void)updateModeToggle {
- if (IsIPadIdiom()) {
- self.mainBVC.hasModeToggleSwitch = self.otrTabModel.count ? YES : NO;
- self.otrBVC.hasModeToggleSwitch = YES;
- }
-}
-
#pragma mark - Internal methods
- (TabModel*)buildOtrTabModel:(BOOL)empty {
« no previous file with comments | « ios/chrome/browser/ui/main/browser_view_wrangler.h ('k') | ios/chrome/browser/ui/no_tabs/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698