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

Side by Side Diff: chrome/browser/ui/browser_command_controller.cc

Issue 2882013002: Add experiment for having a "Beta forum" link in the help menu. (Closed)
Patch Set: Created 3 years, 7 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 | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/chrome_pages.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/browser_command_controller.h" 5 #include "chrome/browser/ui/browser_command_controller.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 break; 614 break;
615 case IDC_VIEW_INCOMPATIBILITIES: 615 case IDC_VIEW_INCOMPATIBILITIES:
616 ShowConflicts(browser_); 616 ShowConflicts(browser_);
617 break; 617 break;
618 case IDC_HELP_PAGE_VIA_KEYBOARD: 618 case IDC_HELP_PAGE_VIA_KEYBOARD:
619 ShowHelp(browser_, HELP_SOURCE_KEYBOARD); 619 ShowHelp(browser_, HELP_SOURCE_KEYBOARD);
620 break; 620 break;
621 case IDC_HELP_PAGE_VIA_MENU: 621 case IDC_HELP_PAGE_VIA_MENU:
622 ShowHelp(browser_, HELP_SOURCE_MENU); 622 ShowHelp(browser_, HELP_SOURCE_MENU);
623 break; 623 break;
624 case IDC_SHOW_BETA_FORUM:
625 ShowBetaForum(browser_);
626 break;
624 case IDC_SHOW_SIGNIN: 627 case IDC_SHOW_SIGNIN:
625 ShowBrowserSigninOrSettings( 628 ShowBrowserSigninOrSettings(
626 browser_, signin_metrics::AccessPoint::ACCESS_POINT_MENU); 629 browser_, signin_metrics::AccessPoint::ACCESS_POINT_MENU);
627 break; 630 break;
628 case IDC_DISTILL_PAGE: 631 case IDC_DISTILL_PAGE:
629 DistillCurrentPage(browser_); 632 DistillCurrentPage(browser_);
630 break; 633 break;
631 #if defined(OS_CHROMEOS) 634 #if defined(OS_CHROMEOS)
632 case IDC_TOUCH_HUD_PROJECTION_TOGGLE: 635 case IDC_TOUCH_HUD_PROJECTION_TOGGLE:
633 if (ash_util::IsRunningInMash()) { 636 if (ash_util::IsRunningInMash()) {
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 << "Ought to never have browser for the system profile."; 790 << "Ought to never have browser for the system profile.";
788 const bool normal_window = browser_->is_type_tabbed(); 791 const bool normal_window = browser_->is_type_tabbed();
789 UpdateOpenFileState(&command_updater_); 792 UpdateOpenFileState(&command_updater_);
790 UpdateCommandsForDevTools(); 793 UpdateCommandsForDevTools();
791 command_updater_.UpdateCommandEnabled(IDC_TASK_MANAGER, CanOpenTaskManager()); 794 command_updater_.UpdateCommandEnabled(IDC_TASK_MANAGER, CanOpenTaskManager());
792 command_updater_.UpdateCommandEnabled(IDC_SHOW_HISTORY, !guest_session); 795 command_updater_.UpdateCommandEnabled(IDC_SHOW_HISTORY, !guest_session);
793 command_updater_.UpdateCommandEnabled(IDC_SHOW_DOWNLOADS, true); 796 command_updater_.UpdateCommandEnabled(IDC_SHOW_DOWNLOADS, true);
794 command_updater_.UpdateCommandEnabled(IDC_HELP_MENU, true); 797 command_updater_.UpdateCommandEnabled(IDC_HELP_MENU, true);
795 command_updater_.UpdateCommandEnabled(IDC_HELP_PAGE_VIA_KEYBOARD, true); 798 command_updater_.UpdateCommandEnabled(IDC_HELP_PAGE_VIA_KEYBOARD, true);
796 command_updater_.UpdateCommandEnabled(IDC_HELP_PAGE_VIA_MENU, true); 799 command_updater_.UpdateCommandEnabled(IDC_HELP_PAGE_VIA_MENU, true);
800 command_updater_.UpdateCommandEnabled(IDC_SHOW_BETA_FORUM, true);
797 command_updater_.UpdateCommandEnabled(IDC_BOOKMARKS_MENU, !guest_session); 801 command_updater_.UpdateCommandEnabled(IDC_BOOKMARKS_MENU, !guest_session);
798 command_updater_.UpdateCommandEnabled(IDC_RECENT_TABS_MENU, 802 command_updater_.UpdateCommandEnabled(IDC_RECENT_TABS_MENU,
799 !guest_session && 803 !guest_session &&
800 !profile()->IsOffTheRecord()); 804 !profile()->IsOffTheRecord());
801 command_updater_.UpdateCommandEnabled(IDC_CLEAR_BROWSING_DATA, 805 command_updater_.UpdateCommandEnabled(IDC_CLEAR_BROWSING_DATA,
802 !guest_session); 806 !guest_session);
803 #if defined(OS_CHROMEOS) 807 #if defined(OS_CHROMEOS)
804 command_updater_.UpdateCommandEnabled(IDC_TAKE_SCREENSHOT, true); 808 command_updater_.UpdateCommandEnabled(IDC_TAKE_SCREENSHOT, true);
805 command_updater_.UpdateCommandEnabled(IDC_TOUCH_HUD_PROJECTION_TOGGLE, true); 809 command_updater_.UpdateCommandEnabled(IDC_TOUCH_HUD_PROJECTION_TOGGLE, true);
806 #else 810 #else
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 1154
1151 BrowserWindow* BrowserCommandController::window() { 1155 BrowserWindow* BrowserCommandController::window() {
1152 return browser_->window(); 1156 return browser_->window();
1153 } 1157 }
1154 1158
1155 Profile* BrowserCommandController::profile() { 1159 Profile* BrowserCommandController::profile() {
1156 return browser_->profile(); 1160 return browser_->profile();
1157 } 1161 }
1158 1162
1159 } // namespace chrome 1163 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/chrome_pages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698