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

Side by Side Diff: chrome/browser/ui/toolbar/wrench_menu_model_chromeos.cc

Issue 8834006: Add shutdown option to wrench menu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: build break Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | no next file » | 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) 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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698