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

Side by Side Diff: ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.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 unified diff | Download patch
« no previous file with comments | « ios/chrome/browser/ui/tabs/tab_strip_egtest.mm ('k') | ios/chrome/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.h" 5 #import "ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/ios/ios_util.h" 9 #include "base/ios/ios_util.h"
10 #import "base/ios/weak_nsobject.h" 10 #import "base/ios/weak_nsobject.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 if (!(item.toolbar_types & toolbarType)) 156 if (!(item.toolbar_types & toolbarType))
157 return NO; 157 return NO;
158 158
159 if (incognito && (item.visibility & kVisibleNotIncognitoOnly)) 159 if (incognito && (item.visibility & kVisibleNotIncognitoOnly))
160 return NO; 160 return NO;
161 161
162 if (!incognito && (item.visibility & kVisibleIncognitoOnly)) 162 if (!incognito && (item.visibility & kVisibleIncognitoOnly))
163 return NO; 163 return NO;
164 164
165 if (item.title_id == IDS_IOS_TOOLBAR_SHOW_TABS) { 165 if (item.title_id == IDS_IOS_TOOLBAR_SHOW_TABS) {
166 if (!IsIPadIdiom() || !experimental_flags::IsTabSwitcherEnabled()) { 166 if (!IsIPadIdiom()) {
167 return NO; 167 return NO;
168 } 168 }
169 } 169 }
170 170
171 if (item.title_id == IDS_IOS_TOOLS_MENU_READER_MODE) { 171 if (item.title_id == IDS_IOS_TOOLS_MENU_READER_MODE) {
172 if (!experimental_flags::IsReaderModeEnabled()) { 172 if (!experimental_flags::IsReaderModeEnabled()) {
173 return NO; 173 return NO;
174 } 174 }
175 } 175 }
176 176
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 747
748 - (void)unreadCountChanged:(NSInteger)unreadCount { 748 - (void)unreadCountChanged:(NSInteger)unreadCount {
749 [[self readingListCell] updateBadgeCount:unreadCount animated:YES]; 749 [[self readingListCell] updateBadgeCount:unreadCount animated:YES];
750 } 750 }
751 751
752 - (void)unseenStateChanged:(BOOL)unseenItemsExist { 752 - (void)unseenStateChanged:(BOOL)unseenItemsExist {
753 [[self readingListCell] updateSeenState:unseenItemsExist animated:YES]; 753 [[self readingListCell] updateSeenState:unseenItemsExist animated:YES];
754 } 754 }
755 755
756 @end 756 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/tabs/tab_strip_egtest.mm ('k') | ios/chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698