summaryrefslogtreecommitdiffstats
path: root/chrome/browser/background_mode_manager.cc
diff options
context:
space:
mode:
authorrickcam@chromium.org <rickcam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-23 01:39:05 +0000
committerrickcam@chromium.org <rickcam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-23 01:39:05 +0000
commit52f116a5a909a565a0a21d184b44bf57303f0f59 (patch)
treee8d42e6497c4de6ce1a19f2256414c4dd6de8501 /chrome/browser/background_mode_manager.cc
parent70f507fbcc3fcb948b7d53ebda572ec8029ab9ed (diff)
downloadchromium_src-52f116a5a909a565a0a21d184b44bf57303f0f59.zip
chromium_src-52f116a5a909a565a0a21d184b44bf57303f0f59.tar.gz
chromium_src-52f116a5a909a565a0a21d184b44bf57303f0f59.tar.bz2
Added Task Manager entry to Status Icon's content menu.
BUG=64115 TEST=none Review URL: http://codereview.chromium.org/5268001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67040 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/background_mode_manager.cc')
-rw-r--r--chrome/browser/background_mode_manager.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/browser/background_mode_manager.cc b/chrome/browser/background_mode_manager.cc
index b88a349..7d883b2 100644
--- a/chrome/browser/background_mode_manager.cc
+++ b/chrome/browser/background_mode_manager.cc
@@ -495,6 +495,7 @@ void BackgroundModeManager::UpdateStatusTrayIconContextMenu() {
#else
menu->AddItemWithStringId(IDC_OPTIONS, IDS_OPTIONS);
#endif
+ menu->AddItemWithStringId(IDC_TASK_MANAGER, IDS_TASK_MANAGER);
menu->AddSeparator();
int application_position = 0;
context_menu_application_offset_ = menu->GetItemCount();
@@ -550,16 +551,19 @@ void BackgroundModeManager::ExecuteApplication(int item) {
void BackgroundModeManager::ExecuteCommand(int item) {
switch (item) {
+ case IDC_ABOUT:
+ GetBrowserWindow()->OpenAboutChromeDialog();
+ break;
case IDC_EXIT:
UserMetrics::RecordAction(UserMetricsAction("Exit"), profile_);
BrowserList::CloseAllBrowsersAndExit();
break;
- case IDC_ABOUT:
- GetBrowserWindow()->OpenAboutChromeDialog();
- break;
case IDC_OPTIONS:
GetBrowserWindow()->OpenOptionsDialog();
break;
+ case IDC_TASK_MANAGER:
+ GetBrowserWindow()->OpenTaskManager();
+ break;
default:
ExecuteApplication(item);
break;