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

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

Issue 6579050: Elides the beginning of tab titles that have common prefixes. ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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) 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/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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 kOsMac, // TODO(crogers): add windows and linux when FFT is ready. 254 kOsMac, // TODO(crogers): add windows and linux when FFT is ready.
255 SINGLE_VALUE_TYPE(switches::kEnableWebAudio) 255 SINGLE_VALUE_TYPE(switches::kEnableWebAudio)
256 }, 256 },
257 { 257 {
258 "enable-history-quick-provider", 258 "enable-history-quick-provider",
259 IDS_FLAGS_ENABLE_HISTORY_QUICK_PROVIDER, 259 IDS_FLAGS_ENABLE_HISTORY_QUICK_PROVIDER,
260 IDS_FLAGS_ENABLE_HISTORY_QUICK_PROVIDER_DESCRIPTION, 260 IDS_FLAGS_ENABLE_HISTORY_QUICK_PROVIDER_DESCRIPTION,
261 kOsAll, 261 kOsAll,
262 SINGLE_VALUE_TYPE(switches::kEnableHistoryQuickProvider) 262 SINGLE_VALUE_TYPE(switches::kEnableHistoryQuickProvider)
263 }, 263 },
264 {
265 "tab-title-prefix-eliding",
266 IDS_FLAGS_ELIDE_TAB_TITLE_PREFIX,
267 IDS_FLAGS_ELIDE_TAB_TITLE_PREFIX_DESCRIPTION,
268 kOsAll,
sky 2011/02/25 17:02:07 Your patch only effects windows and chromeos.
MAD 2011/02/25 20:09:13 Ho, I didn't realize that... Changed to: kOsWin |
269 SINGLE_VALUE_TYPE(switches::kElideTabTitlePrefix)
270 },
264 }; 271 };
265 272
266 const Experiment* experiments = kExperiments; 273 const Experiment* experiments = kExperiments;
267 size_t num_experiments = arraysize(kExperiments); 274 size_t num_experiments = arraysize(kExperiments);
268 275
269 // Stores and encapsulates the little state that about:flags has. 276 // Stores and encapsulates the little state that about:flags has.
270 class FlagsState { 277 class FlagsState {
271 public: 278 public:
272 FlagsState() : needs_restart_(false) {} 279 FlagsState() : needs_restart_(false) {}
273 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 280 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 } 692 }
686 693
687 const Experiment* GetExperiments(size_t* count) { 694 const Experiment* GetExperiments(size_t* count) {
688 *count = num_experiments; 695 *count = num_experiments;
689 return experiments; 696 return experiments;
690 } 697 }
691 698
692 } // namespace testing 699 } // namespace testing
693 700
694 } // namespace about_flags 701 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698