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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 10117016: Implementation for switching between recently used tabs using ctrl tilde or quoteleft. Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added unit test Created 8 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 #endif // defined(USE_ASH) 748 #endif // defined(USE_ASH)
749 #if defined(OS_CHROMEOS) 749 #if defined(OS_CHROMEOS)
750 { 750 {
751 "enable-new-oobe", 751 "enable-new-oobe",
752 IDS_FLAGS_ENABLE_NEW_OOBE, 752 IDS_FLAGS_ENABLE_NEW_OOBE,
753 IDS_FLAGS_ENABLE_NEW_OOBE_DESCRIPTION, 753 IDS_FLAGS_ENABLE_NEW_OOBE_DESCRIPTION,
754 kOsCrOS, 754 kOsCrOS,
755 SINGLE_VALUE_TYPE(switches::kEnableNewOobe), 755 SINGLE_VALUE_TYPE(switches::kEnableNewOobe),
756 }, 756 },
757 #endif 757 #endif
758 {
759 "enable-tab-mru-switch",
760 IDS_FLAGS_ENABLE_TAB_MRU_SWITCH,
761 IDS_FLAGS_ENABLE_TAB_MRU_SWITCH_DESCRIPTION,
762 kOsAll,
sky 2012/06/11 18:21:51 It looks like you only wired this up on linux.
NaveenBobbili (Motorola) 2012/06/13 06:07:32 Done.
763 SINGLE_VALUE_TYPE(switches::kEnableTabMRUSwitch),
764 },
758 }; 765 };
759 766
760 const Experiment* experiments = kExperiments; 767 const Experiment* experiments = kExperiments;
761 size_t num_experiments = arraysize(kExperiments); 768 size_t num_experiments = arraysize(kExperiments);
762 769
763 // Stores and encapsulates the little state that about:flags has. 770 // Stores and encapsulates the little state that about:flags has.
764 class FlagsState { 771 class FlagsState {
765 public: 772 public:
766 FlagsState() : needs_restart_(false) {} 773 FlagsState() : needs_restart_(false) {}
767 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 774 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 } 1190 }
1184 1191
1185 const Experiment* GetExperiments(size_t* count) { 1192 const Experiment* GetExperiments(size_t* count) {
1186 *count = num_experiments; 1193 *count = num_experiments;
1187 return experiments; 1194 return experiments;
1188 } 1195 }
1189 1196
1190 } // namespace testing 1197 } // namespace testing
1191 1198
1192 } // namespace about_flags 1199 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698