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

Side by Side Diff: chrome/browser/ui/tabs/tab_menu_model.cc

Issue 6122006: Cleanup: Remove unneeded includes of pref_names.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/tabs/tab_menu_model.h" 5 #include "chrome/browser/ui/tabs/tab_menu_model.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/tabs/tab_strip_model.h" 8 #include "chrome/browser/tabs/tab_strip_model.h"
9 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
10 #include "chrome/common/pref_names.h"
11 #include "grit/generated_resources.h" 10 #include "grit/generated_resources.h"
12 11
13 TabMenuModel::TabMenuModel(menus::SimpleMenuModel::Delegate* delegate, 12 TabMenuModel::TabMenuModel(menus::SimpleMenuModel::Delegate* delegate,
14 bool is_pinned) 13 bool is_pinned)
15 : menus::SimpleMenuModel(delegate) { 14 : menus::SimpleMenuModel(delegate) {
16 Build(is_pinned); 15 Build(is_pinned);
17 } 16 }
18 17
19 // static 18 // static
20 bool TabMenuModel::AreVerticalTabsEnabled() { 19 bool TabMenuModel::AreVerticalTabsEnabled() {
(...skipping 24 matching lines...) Expand all
45 AddSeparator(); 44 AddSeparator();
46 AddItemWithStringId(TabStripModel::CommandRestoreTab, IDS_RESTORE_TAB); 45 AddItemWithStringId(TabStripModel::CommandRestoreTab, IDS_RESTORE_TAB);
47 AddItemWithStringId(TabStripModel::CommandBookmarkAllTabs, 46 AddItemWithStringId(TabStripModel::CommandBookmarkAllTabs,
48 IDS_TAB_CXMENU_BOOKMARK_ALL_TABS); 47 IDS_TAB_CXMENU_BOOKMARK_ALL_TABS);
49 if (AreVerticalTabsEnabled()) { 48 if (AreVerticalTabsEnabled()) {
50 AddSeparator(); 49 AddSeparator();
51 AddCheckItemWithStringId(TabStripModel::CommandUseVerticalTabs, 50 AddCheckItemWithStringId(TabStripModel::CommandUseVerticalTabs,
52 IDS_TAB_CXMENU_USE_VERTICAL_TABS); 51 IDS_TAB_CXMENU_USE_VERTICAL_TABS);
53 } 52 }
54 } 53 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm ('k') | chrome/browser/ui/views/bookmark_context_menu_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698