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

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

Issue 111723012: Linux Aura: Added --use-system-title-bar flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing jamescook nits. Created 7 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
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 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1944 kOsCrOS | kOsMac | kOsWin, 1944 kOsCrOS | kOsMac | kOsWin,
1945 MULTI_VALUE_TYPE(kSearchButtonInOmniboxChoices) 1945 MULTI_VALUE_TYPE(kSearchButtonInOmniboxChoices)
1946 }, 1946 },
1947 { 1947 {
1948 "enable-ignore-autocomplete-off", 1948 "enable-ignore-autocomplete-off",
1949 IDS_FLAGS_ENABLE_IGNORE_AUTOCOMPLETE_OFF_NAME, 1949 IDS_FLAGS_ENABLE_IGNORE_AUTOCOMPLETE_OFF_NAME,
1950 IDS_FLAGS_ENABLE_IGNORE_AUTOCOMPLETE_OFF_DESCRIPTION, 1950 IDS_FLAGS_ENABLE_IGNORE_AUTOCOMPLETE_OFF_DESCRIPTION,
1951 kOsAll, 1951 kOsAll,
1952 SINGLE_VALUE_TYPE(autofill::switches::kEnableIgnoreAutocompleteOff) 1952 SINGLE_VALUE_TYPE(autofill::switches::kEnableIgnoreAutocompleteOff)
1953 } 1953 }
1954 #if defined(USE_AURA)
1955 ,
1956 {
1957 "use-system-title-bar",
1958 IDS_FLAGS_USE_SYSTEM_TITLE_BAR,
1959 IDS_FLAGS_USE_SYSTEM_TITLE_BAR_DESCRIPTION,
1960 kOsLinux,
1961 SINGLE_VALUE_TYPE(switches::kUseSystemTitleBar)
1962 }
1963 #endif
1954 }; 1964 };
1955 1965
1956 const Experiment* experiments = kExperiments; 1966 const Experiment* experiments = kExperiments;
1957 size_t num_experiments = arraysize(kExperiments); 1967 size_t num_experiments = arraysize(kExperiments);
1958 1968
1959 // Stores and encapsulates the little state that about:flags has. 1969 // Stores and encapsulates the little state that about:flags has.
1960 class FlagsState { 1970 class FlagsState {
1961 public: 1971 public:
1962 FlagsState() : needs_restart_(false) {} 1972 FlagsState() : needs_restart_(false) {}
1963 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, 1973 void ConvertFlagsToSwitches(FlagsStorage* flags_storage,
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
2454 } 2464 }
2455 2465
2456 const Experiment* GetExperiments(size_t* count) { 2466 const Experiment* GetExperiments(size_t* count) {
2457 *count = num_experiments; 2467 *count = num_experiments;
2458 return experiments; 2468 return experiments;
2459 } 2469 }
2460 2470
2461 } // namespace testing 2471 } // namespace testing
2462 2472
2463 } // namespace about_flags 2473 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698