OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/toolbar/wrench_menu_model.h" | 5 #include "chrome/browser/ui/toolbar/wrench_menu_model.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/i18n/number_formatting.h" | 8 #include "base/i18n/number_formatting.h" |
9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
10 #include "chrome/browser/task_manager/task_manager.h" | 10 #include "chrome/browser/task_manager/task_manager.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 AddSeparator(); | 73 AddSeparator(); |
74 | 74 |
75 AddItemWithStringId(IDC_LOCK_SCREEN, IDS_LOCK_SCREEN); | 75 AddItemWithStringId(IDC_LOCK_SCREEN, IDS_LOCK_SCREEN); |
76 | 76 |
77 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kGuestSession)) { | 77 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kGuestSession)) { |
78 AddItemWithStringId(IDC_EXIT, IDS_EXIT_GUEST_MODE); | 78 AddItemWithStringId(IDC_EXIT, IDS_EXIT_GUEST_MODE); |
79 } else { | 79 } else { |
80 AddItemWithStringId(IDC_EXIT, IDS_SIGN_OUT); | 80 AddItemWithStringId(IDC_EXIT, IDS_SIGN_OUT); |
81 } | 81 } |
| 82 |
| 83 AddItemWithStringId(IDC_SHUTDOWN, IDS_SHUTDOWN_BUTTON); |
82 } | 84 } |
83 | 85 |
OLD | NEW |