| 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 {
|
|
|