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

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

Issue 2108833002: Remove Simplify Page option from Print Preview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mark histogram entries as unused Created 4 years, 5 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 | « chrome/app/generated_resources.grd ('k') | chrome/browser/dom_distiller/profile_utils.h » ('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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 #endif 93 #endif
94 94
95 #if defined(ENABLE_APP_LIST) 95 #if defined(ENABLE_APP_LIST)
96 #include "ui/app_list/app_list_switches.h" 96 #include "ui/app_list/app_list_switches.h"
97 #endif 97 #endif
98 98
99 #if defined(ENABLE_EXTENSIONS) 99 #if defined(ENABLE_EXTENSIONS)
100 #include "extensions/common/switches.h" 100 #include "extensions/common/switches.h"
101 #endif 101 #endif
102 102
103 #if defined(ENABLE_PRINT_PREVIEW)
104 #include "chrome/browser/ui/webui/print_preview/print_preview_distiller.h"
105 #endif
106
107 #if defined(USE_ASH) 103 #if defined(USE_ASH)
108 #include "ash/common/ash_switches.h" 104 #include "ash/common/ash_switches.h"
109 #endif 105 #endif
110 106
111 #if defined(USE_OZONE) 107 #if defined(USE_OZONE)
112 #include "ui/ozone/public/ozone_switches.h" 108 #include "ui/ozone/public/ozone_switches.h"
113 #endif 109 #endif
114 110
115 using flags_ui::FeatureEntry; 111 using flags_ui::FeatureEntry;
116 using flags_ui::kOsMac; 112 using flags_ui::kOsMac;
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 {"device-discovery-notifications", 1141 {"device-discovery-notifications",
1146 IDS_FLAGS_DEVICE_DISCOVERY_NOTIFICATIONS_NAME, 1142 IDS_FLAGS_DEVICE_DISCOVERY_NOTIFICATIONS_NAME,
1147 IDS_FLAGS_DEVICE_DISCOVERY_NOTIFICATIONS_DESCRIPTION, kOsDesktop, 1143 IDS_FLAGS_DEVICE_DISCOVERY_NOTIFICATIONS_DESCRIPTION, kOsDesktop,
1148 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableDeviceDiscoveryNotifications, 1144 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableDeviceDiscoveryNotifications,
1149 switches::kDisableDeviceDiscoveryNotifications)}, 1145 switches::kDisableDeviceDiscoveryNotifications)},
1150 {"enable-print-preview-register-promos", 1146 {"enable-print-preview-register-promos",
1151 IDS_FLAGS_PRINT_PREVIEW_REGISTER_PROMOS_NAME, 1147 IDS_FLAGS_PRINT_PREVIEW_REGISTER_PROMOS_NAME,
1152 IDS_FLAGS_PRINT_PREVIEW_REGISTER_PROMOS_DESCRIPTION, kOsDesktop, 1148 IDS_FLAGS_PRINT_PREVIEW_REGISTER_PROMOS_DESCRIPTION, kOsDesktop,
1153 SINGLE_VALUE_TYPE(switches::kEnablePrintPreviewRegisterPromos)}, 1149 SINGLE_VALUE_TYPE(switches::kEnablePrintPreviewRegisterPromos)},
1154 #endif // ENABLE_SERVICE_DISCOVERY 1150 #endif // ENABLE_SERVICE_DISCOVERY
1155 #if defined(ENABLE_PRINT_PREVIEW)
1156 {"enable-print-preview-simplify", IDS_FLAGS_DISTILLER_IN_PRINT_PREVIEW_NAME,
1157 IDS_FLAGS_DISTILLER_IN_PRINT_PREVIEW_DESCRIPTION, kOsDesktop,
1158 FEATURE_VALUE_TYPE(PrintPreviewDistiller::kFeature)},
1159 #endif
1160 #if defined(OS_WIN) 1151 #if defined(OS_WIN)
1161 {"enable-cloud-print-xps", IDS_FLAGS_CLOUD_PRINT_XPS_NAME, 1152 {"enable-cloud-print-xps", IDS_FLAGS_CLOUD_PRINT_XPS_NAME,
1162 IDS_FLAGS_CLOUD_PRINT_XPS_DESCRIPTION, kOsWin, 1153 IDS_FLAGS_CLOUD_PRINT_XPS_DESCRIPTION, kOsWin,
1163 SINGLE_VALUE_TYPE(switches::kEnableCloudPrintXps)}, 1154 SINGLE_VALUE_TYPE(switches::kEnableCloudPrintXps)},
1164 #endif 1155 #endif
1165 #if defined(TOOLKIT_VIEWS) 1156 #if defined(TOOLKIT_VIEWS)
1166 {"disable-hide-inactive-stacked-tab-close-buttons", 1157 {"disable-hide-inactive-stacked-tab-close-buttons",
1167 IDS_FLAGS_HIDE_INACTIVE_STACKED_TAB_CLOSE_BUTTONS_NAME, 1158 IDS_FLAGS_HIDE_INACTIVE_STACKED_TAB_CLOSE_BUTTONS_NAME,
1168 IDS_FLAGS_HIDE_INACTIVE_STACKED_TAB_CLOSE_BUTTONS_DESCRIPTION, 1159 IDS_FLAGS_HIDE_INACTIVE_STACKED_TAB_CLOSE_BUTTONS_DESCRIPTION,
1169 kOsCrOS | kOsWin | kOsLinux, 1160 kOsCrOS | kOsWin | kOsLinux,
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
2159 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2150 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2160 2151
2161 const FeatureEntry* GetFeatureEntries(size_t* count) { 2152 const FeatureEntry* GetFeatureEntries(size_t* count) {
2162 *count = arraysize(kFeatureEntries); 2153 *count = arraysize(kFeatureEntries);
2163 return kFeatureEntries; 2154 return kFeatureEntries;
2164 } 2155 }
2165 2156
2166 } // namespace testing 2157 } // namespace testing
2167 2158
2168 } // namespace about_flags 2159 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/dom_distiller/profile_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698