[ios] Remove IDC_SHOW_BOOKMARK_MANAGER
This CL refactors IDC_SHOW_BOOKMARK_MANAGER to use the dispatcher rather
than ChromeCommand. This CL also removes all IDC commands from the
whats new promo.
Bug: 738881
Change-Id: I9584caaf580f0fff335173f171782819eba8aeed
Reviewed-on: https://chromium-review.googlesource.com/644120
Reviewed-by: edchin <[email protected]>
Reviewed-by: Gregory Chatzinoff <[email protected]>
Reviewed-by: Mark Cogan <[email protected]>
Reviewed-by: Justin Cohen <[email protected]>
Reviewed-by: Jean-François Geyelin <[email protected]>
Commit-Queue: edchin <[email protected]>
Cr-Commit-Position: refs/heads/master@{#499196}
diff --git a/ios/chrome/browser/ui/browser_view_controller.mm b/ios/chrome/browser/ui/browser_view_controller.mm
index cc62225..0974a37 100644
--- a/ios/chrome/browser/ui/browser_view_controller.mm
+++ b/ios/chrome/browser/ui/browser_view_controller.mm
@@ -4415,6 +4415,15 @@
appendTo:kCurrentTab];
}
+- (void)showBookmarksManager {
+ if (IsIPadIdiom()) {
+ [self showAllBookmarks];
+ } else {
+ [self initializeBookmarkInteractionController];
+ [_bookmarkInteractionController presentBookmarks];
+ }
+}
+
#pragma mark - Command Handling
- (IBAction)chromeExecuteCommand:(id)sender {
@@ -4433,15 +4442,6 @@
case IDC_REQUEST_MOBILE_SITE:
[[_model currentTab] reloadWithUserAgentType:web::UserAgentType::MOBILE];
break;
- case IDC_SHOW_BOOKMARK_MANAGER: {
- if (IsIPadIdiom()) {
- [self showAllBookmarks];
- } else {
- [self initializeBookmarkInteractionController];
- [_bookmarkInteractionController presentBookmarks];
- }
- break;
- }
case IDC_SHOW_OTHER_DEVICES: {
if (IsIPadIdiom()) {
[self showNTPPanel:ntp_home::RECENT_TABS_PANEL];