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

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

Issue 2633573002: Add Postscript Printing (Closed)
Patch Set: Fix Linux compile error Created 3 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
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 <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 2161 matching lines...) Expand 10 before | Expand all | Expand 10 after
2172 kOsAndroid, FEATURE_WITH_VARIATIONS_VALUE_TYPE( 2172 kOsAndroid, FEATURE_WITH_VARIATIONS_VALUE_TYPE(
2173 autofill::kAutofillCreditCardPopupLayout, 2173 autofill::kAutofillCreditCardPopupLayout,
2174 kAutofillCreditCardPopupLayoutFeatureVariations, 2174 kAutofillCreditCardPopupLayoutFeatureVariations,
2175 "AutofillCreditCardPopupLayout")}, 2175 "AutofillCreditCardPopupLayout")},
2176 {"native-android-history-manager", IDS_NATIVE_ANDROID_HISTORY_MANAGER, 2176 {"native-android-history-manager", IDS_NATIVE_ANDROID_HISTORY_MANAGER,
2177 IDS_NATIVE_ANDROID_HISTORY_MANAGER_DESCRIPTION, kOsAndroid, 2177 IDS_NATIVE_ANDROID_HISTORY_MANAGER_DESCRIPTION, kOsAndroid,
2178 FEATURE_VALUE_TYPE(chrome::android::kNativeAndroidHistoryManager)}, 2178 FEATURE_VALUE_TYPE(chrome::android::kNativeAndroidHistoryManager)},
2179 #endif // OS_ANDROID 2179 #endif // OS_ANDROID
2180 {"enable-faster-location-reload", IDS_FLAGS_FASTER_LOCATION_RELOAD_NAME, 2180 {"enable-faster-location-reload", IDS_FLAGS_FASTER_LOCATION_RELOAD_NAME,
2181 IDS_FLAGS_FASTER_LOCATION_RELOAD_DESCRIPTION, kOsAll, 2181 IDS_FLAGS_FASTER_LOCATION_RELOAD_DESCRIPTION, kOsAll,
2182 FEATURE_VALUE_TYPE(features::kFasterLocationReload)} 2182 FEATURE_VALUE_TYPE(features::kFasterLocationReload)},
2183 2183 #if defined(OS_WIN)
2184 {"enable-postscript-printing", IDS_FLAGS_POSTSCRIPT_PRINTING,
2185 IDS_FLAGS_POSTSCRIPT_PRINTING_DESCRIPTION, kOsWin,
2186 FEATURE_VALUE_TYPE(features::kPostScriptPrinting)}
2187 #endif
2184 // NOTE: Adding new command-line switches requires adding corresponding 2188 // NOTE: Adding new command-line switches requires adding corresponding
2185 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2189 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2186 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2190 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2187 }; 2191 };
2188 2192
2189 class FlagsStateSingleton { 2193 class FlagsStateSingleton {
2190 public: 2194 public:
2191 FlagsStateSingleton() 2195 FlagsStateSingleton()
2192 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2196 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2193 ~FlagsStateSingleton() {} 2197 ~FlagsStateSingleton() {}
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2382 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2386 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2383 2387
2384 const FeatureEntry* GetFeatureEntries(size_t* count) { 2388 const FeatureEntry* GetFeatureEntries(size_t* count) {
2385 *count = arraysize(kFeatureEntries); 2389 *count = arraysize(kFeatureEntries);
2386 return kFeatureEntries; 2390 return kFeatureEntries;
2387 } 2391 }
2388 2392
2389 } // namespace testing 2393 } // namespace testing
2390 2394
2391 } // namespace about_flags 2395 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698