| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 SetIcon(GetIndexOfCommandId(IDC_HELP_PAGE), | 65 SetIcon(GetIndexOfCommandId(IDC_HELP_PAGE), |
| 66 *rb.GetBitmapNamed(IDR_HELP_MENU)); | 66 *rb.GetBitmapNamed(IDR_HELP_MENU)); |
| 67 | 67 |
| 68 // Show IDC_FEEDBACK in top-tier wrench menu for ChromeOS. | 68 // Show IDC_FEEDBACK in top-tier wrench menu for ChromeOS. |
| 69 AddItemWithStringId(IDC_FEEDBACK, IDS_FEEDBACK); | 69 AddItemWithStringId(IDC_FEEDBACK, IDS_FEEDBACK); |
| 70 | 70 |
| 71 AddGlobalErrorMenuItems(); | 71 AddGlobalErrorMenuItems(); |
| 72 | 72 |
| 73 AddSeparator(); | 73 AddSeparator(); |
| 74 | 74 |
| 75 AddItemWithStringId(IDC_LOCK_SCREEN, IDS_LOCK_SCREEN); | |
| 76 | |
| 77 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kGuestSession)) { | 75 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kGuestSession)) { |
| 78 AddItemWithStringId(IDC_EXIT, IDS_EXIT_GUEST_MODE); | 76 AddItemWithStringId(IDC_EXIT, IDS_EXIT_GUEST_MODE); |
| 79 } else { | 77 } else { |
| 78 AddItemWithStringId(IDC_LOCK_SCREEN, IDS_LOCK_SCREEN); |
| 80 AddItemWithStringId(IDC_EXIT, IDS_SIGN_OUT); | 79 AddItemWithStringId(IDC_EXIT, IDS_SIGN_OUT); |
| 81 } | 80 } |
| 82 } | 81 } |
| 83 | 82 |
| OLD | NEW |