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

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

Issue 2616783002: Remove Print As Image for Mac and Win (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/settings/other_options_settings.js » ('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) 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 2088 matching lines...) Expand 10 before | Expand all | Expand 10 after
2099 #endif 2099 #endif
2100 #if !defined(OS_MACOSX) 2100 #if !defined(OS_MACOSX)
2101 {"permission-prompt-persistence-toggle", 2101 {"permission-prompt-persistence-toggle",
2102 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_NAME, 2102 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_NAME,
2103 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_DESCRIPTION, 2103 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_DESCRIPTION,
2104 kOsWin | kOsCrOS | kOsLinux | kOsAndroid, 2104 kOsWin | kOsCrOS | kOsLinux | kOsAndroid,
2105 FEATURE_VALUE_TYPE( 2105 FEATURE_VALUE_TYPE(
2106 features::kDisplayPersistenceToggleInPermissionPrompts)}, 2106 features::kDisplayPersistenceToggleInPermissionPrompts)},
2107 #endif 2107 #endif
2108 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) 2108 #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
2109 #if defined(OS_CHROMEOS) || defined(OS_LINUX)
dpapad 2017/01/05 21:43:03 Is this equivalent to !OS_MACOSX && !OS_WIN? Aski
rbpotter 2017/01/06 01:26:47 Not sure if any other platforms besides Mac/Win/Li
2109 {"print-pdf-as-image", IDS_FLAGS_PRINT_PDF_AS_IMAGE_NAME, 2110 {"print-pdf-as-image", IDS_FLAGS_PRINT_PDF_AS_IMAGE_NAME,
2110 IDS_FLAGS_PRINT_PDF_AS_IMAGE_DESCRIPTION, kOsDesktop, 2111 IDS_FLAGS_PRINT_PDF_AS_IMAGE_DESCRIPTION, kOsDesktop,
2111 FEATURE_VALUE_TYPE(features::kPrintPdfAsImage)}, 2112 FEATURE_VALUE_TYPE(features::kPrintPdfAsImage)},
2113 #endif
2112 {"print-scaling", IDS_FLAGS_PRINT_SCALING_NAME, 2114 {"print-scaling", IDS_FLAGS_PRINT_SCALING_NAME,
2113 IDS_FLAGS_PRINT_SCALING_DESCRIPTION, kOsDesktop, 2115 IDS_FLAGS_PRINT_SCALING_DESCRIPTION, kOsDesktop,
2114 FEATURE_VALUE_TYPE(features::kPrintScaling)}, 2116 FEATURE_VALUE_TYPE(features::kPrintScaling)},
2115 #endif // !defined(OS_ANDROID) 2117 #endif // !defined(OS_ANDROID)
2116 #if defined(OS_ANDROID) 2118 #if defined(OS_ANDROID)
2117 {"enable-consistent-omnibox-geolocation", 2119 {"enable-consistent-omnibox-geolocation",
2118 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_NAME, 2120 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_NAME,
2119 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_DESCRIPTION, kOsAndroid, 2121 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_DESCRIPTION, kOsAndroid,
2120 FEATURE_VALUE_TYPE(features::kConsistentOmniboxGeolocation)}, 2122 FEATURE_VALUE_TYPE(features::kConsistentOmniboxGeolocation)},
2121 {"concurrent-background-loading-on-svelte", 2123 {"concurrent-background-loading-on-svelte",
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
2376 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2378 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2377 2379
2378 const FeatureEntry* GetFeatureEntries(size_t* count) { 2380 const FeatureEntry* GetFeatureEntries(size_t* count) {
2379 *count = arraysize(kFeatureEntries); 2381 *count = arraysize(kFeatureEntries);
2380 return kFeatureEntries; 2382 return kFeatureEntries;
2381 } 2383 }
2382 2384
2383 } // namespace testing 2385 } // namespace testing
2384 2386
2385 } // namespace about_flags 2387 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/settings/other_options_settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698