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

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

Issue 2556023002: Added flags for PrintBrowser mode (Closed)
Patch Set: Replaced enable-print-browser feature flag with command line switch. 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 2054 matching lines...) Expand 10 before | Expand all | Expand 10 after
2065 FEATURE_VALUE_TYPE(features::kModalPermissionPrompts)}, 2065 FEATURE_VALUE_TYPE(features::kModalPermissionPrompts)},
2066 #endif 2066 #endif
2067 #if !defined(OS_MACOSX) 2067 #if !defined(OS_MACOSX)
2068 {"permission-prompt-persistence-toggle", 2068 {"permission-prompt-persistence-toggle",
2069 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_NAME, 2069 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_NAME,
2070 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_DESCRIPTION, 2070 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_DESCRIPTION,
2071 kOsWin | kOsCrOS | kOsLinux | kOsAndroid, 2071 kOsWin | kOsCrOS | kOsLinux | kOsAndroid,
2072 FEATURE_VALUE_TYPE( 2072 FEATURE_VALUE_TYPE(
2073 features::kDisplayPersistenceToggleInPermissionPrompts)}, 2073 features::kDisplayPersistenceToggleInPermissionPrompts)},
2074 #endif 2074 #endif
2075 #if BUILDFLAG(ENABLE_PRINT_BROWSER)
2076 {"enable-print-browser", IDS_FLAGS_PRINT_BROWSER_NAME,
2077 IDS_FLAGS_PRINT_BROWSER_DESCRIPTION, kOsDesktop,
2078 SINGLE_VALUE_TYPE(switches::kEnablePrintBrowser)},
2079 #endif
2075 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) 2080 #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
2076 {"print-scaling", IDS_FLAGS_PRINT_SCALING_NAME, 2081 {"print-scaling", IDS_FLAGS_PRINT_SCALING_NAME,
2077 IDS_FLAGS_PRINT_SCALING_DESCRIPTION, kOsDesktop, 2082 IDS_FLAGS_PRINT_SCALING_DESCRIPTION, kOsDesktop,
2078 FEATURE_VALUE_TYPE(features::kPrintScaling)}, 2083 FEATURE_VALUE_TYPE(features::kPrintScaling)},
2079 #endif // !defined(OS_ANDROID) 2084 #endif // !defined(OS_ANDROID)
2080 #if defined(OS_ANDROID) 2085 #if defined(OS_ANDROID)
2081 {"enable-consistent-omnibox-geolocation", 2086 {"enable-consistent-omnibox-geolocation",
2082 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_NAME, 2087 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_NAME,
2083 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_DESCRIPTION, kOsAndroid, 2088 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_DESCRIPTION, kOsAndroid,
2084 FEATURE_VALUE_TYPE(features::kConsistentOmniboxGeolocation)}, 2089 FEATURE_VALUE_TYPE(features::kConsistentOmniboxGeolocation)},
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
2319 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2324 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2320 2325
2321 const FeatureEntry* GetFeatureEntries(size_t* count) { 2326 const FeatureEntry* GetFeatureEntries(size_t* count) {
2322 *count = arraysize(kFeatureEntries); 2327 *count = arraysize(kFeatureEntries);
2323 return kFeatureEntries; 2328 return kFeatureEntries;
2324 } 2329 }
2325 2330
2326 } // namespace testing 2331 } // namespace testing
2327 2332
2328 } // namespace about_flags 2333 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698