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

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

Issue 7605003: --downloads-new-ui completely disables the download shelf. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: " Created 9 years, 4 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/browser.cc » ('j') | 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/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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 "memory-widget", 364 "memory-widget",
365 IDS_FLAGS_MEMORY_WIDGET_NAME, 365 IDS_FLAGS_MEMORY_WIDGET_NAME,
366 IDS_FLAGS_MEMORY_WIDGET_DESCRIPTION, 366 IDS_FLAGS_MEMORY_WIDGET_DESCRIPTION,
367 kOsCrOS, 367 kOsCrOS,
368 #if defined(OS_CHROMEOS) 368 #if defined(OS_CHROMEOS)
369 // This switch exists only on Chrome OS. 369 // This switch exists only on Chrome OS.
370 SINGLE_VALUE_TYPE(switches::kMemoryWidget) 370 SINGLE_VALUE_TYPE(switches::kMemoryWidget)
371 #else 371 #else
372 SINGLE_VALUE_TYPE("") 372 SINGLE_VALUE_TYPE("")
373 #endif 373 #endif
374 },}; 374 },
375 {
376 "downloads-new-ui", // FLAGS:RECORD_UMA
377 IDS_FLAGS_DOWNLOADS_NEW_UI_NAME,
378 IDS_FLAGS_DOWNLOADS_NEW_UI_DESCRIPTION,
379 kOsAll,
380 SINGLE_VALUE_TYPE(switches::kDownloadsNewUI)
381 },
382 };
375 383
376 const Experiment* experiments = kExperiments; 384 const Experiment* experiments = kExperiments;
377 size_t num_experiments = arraysize(kExperiments); 385 size_t num_experiments = arraysize(kExperiments);
378 386
379 // Stores and encapsulates the little state that about:flags has. 387 // Stores and encapsulates the little state that about:flags has.
380 class FlagsState { 388 class FlagsState {
381 public: 389 public:
382 FlagsState() : needs_restart_(false) {} 390 FlagsState() : needs_restart_(false) {}
383 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 391 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
384 bool IsRestartNeededToCommitChanges(); 392 bool IsRestartNeededToCommitChanges();
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 } 812 }
805 813
806 const Experiment* GetExperiments(size_t* count) { 814 const Experiment* GetExperiments(size_t* count) {
807 *count = num_experiments; 815 *count = num_experiments;
808 return experiments; 816 return experiments;
809 } 817 }
810 818
811 } // namespace testing 819 } // namespace testing
812 820
813 } // namespace about_flags 821 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698