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

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

Issue 2556023002: Added flags for PrintBrowser mode (Closed)
Patch Set: Fix git weirdness Created 4 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
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 2034 matching lines...) Expand 10 before | Expand all | Expand 10 after
2045 FEATURE_VALUE_TYPE(features::kModalPermissionPrompts)}, 2045 FEATURE_VALUE_TYPE(features::kModalPermissionPrompts)},
2046 #endif 2046 #endif
2047 #if !defined(OS_MACOSX) 2047 #if !defined(OS_MACOSX)
2048 {"permission-prompt-persistence-toggle", 2048 {"permission-prompt-persistence-toggle",
2049 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_NAME, 2049 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_NAME,
2050 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_DESCRIPTION, 2050 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_DESCRIPTION,
2051 kOsWin | kOsCrOS | kOsLinux | kOsAndroid, 2051 kOsWin | kOsCrOS | kOsLinux | kOsAndroid,
2052 FEATURE_VALUE_TYPE( 2052 FEATURE_VALUE_TYPE(
2053 features::kDisplayPersistenceToggleInPermissionPrompts)}, 2053 features::kDisplayPersistenceToggleInPermissionPrompts)},
2054 #endif 2054 #endif
2055 #if BUILDFLAG(ENABLE_PRINT_BROWSER)
2056 {"enable-print-browser", IDS_FLAGS_PRINT_BROWSER_NAME,
2057 IDS_FLAGS_PRINT_BROWSER_DESCRIPTION, kOsDesktop,
2058 SINGLE_VALUE_TYPE(switches::kEnablePrintBrowser)},
2059 #endif
2055 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) 2060 #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
2056 {"print-scaling", IDS_FLAGS_PRINT_SCALING_NAME, 2061 {"print-scaling", IDS_FLAGS_PRINT_SCALING_NAME,
2057 IDS_FLAGS_PRINT_SCALING_DESCRIPTION, kOsDesktop, 2062 IDS_FLAGS_PRINT_SCALING_DESCRIPTION, kOsDesktop,
2058 FEATURE_VALUE_TYPE(features::kPrintScaling)}, 2063 FEATURE_VALUE_TYPE(features::kPrintScaling)},
2059 #endif // !defined(OS_ANDROID) 2064 #endif // !defined(OS_ANDROID)
2060 #if defined(OS_ANDROID) 2065 #if defined(OS_ANDROID)
2061 {"enable-consistent-omnibox-geolocation", 2066 {"enable-consistent-omnibox-geolocation",
2062 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_NAME, 2067 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_NAME,
2063 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_DESCRIPTION, kOsAndroid, 2068 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_DESCRIPTION, kOsAndroid,
2064 FEATURE_VALUE_TYPE(features::kConsistentOmniboxGeolocation)}, 2069 FEATURE_VALUE_TYPE(features::kConsistentOmniboxGeolocation)},
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2305 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2301 2306
2302 const FeatureEntry* GetFeatureEntries(size_t* count) { 2307 const FeatureEntry* GetFeatureEntries(size_t* count) {
2303 *count = arraysize(kFeatureEntries); 2308 *count = arraysize(kFeatureEntries);
2304 return kFeatureEntries; 2309 return kFeatureEntries;
2305 } 2310 }
2306 2311
2307 } // namespace testing 2312 } // namespace testing
2308 2313
2309 } // namespace about_flags 2314 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698