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

Side by Side Diff: chrome/common/chrome_features.cc

Issue 2944973002: Remove IS_IOS checks in chrome/ (Closed)
Patch Set: Created 3 years, 6 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/common/chrome_features.h ('k') | chrome/common/chrome_paths_mac.mm » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/common/chrome_features.h" 5 #include "chrome/common/chrome_features.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 #include "extensions/features/features.h" 9 #include "extensions/features/features.h"
10 #include "ppapi/features/features.h" 10 #include "ppapi/features/features.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // The material redesign of the Incognito NTP. 196 // The material redesign of the Incognito NTP.
197 const base::Feature kMaterialDesignIncognitoNTP{ 197 const base::Feature kMaterialDesignIncognitoNTP{
198 "MaterialDesignIncognitoNTP", 198 "MaterialDesignIncognitoNTP",
199 #if defined(OS_ANDROID) 199 #if defined(OS_ANDROID)
200 base::FEATURE_DISABLED_BY_DEFAULT 200 base::FEATURE_DISABLED_BY_DEFAULT
201 #else 201 #else
202 base::FEATURE_ENABLED_BY_DEFAULT 202 base::FEATURE_ENABLED_BY_DEFAULT
203 #endif 203 #endif
204 }; 204 };
205 205
206 #if !defined(OS_ANDROID) && !defined(OS_IOS) 206 #if !defined(OS_ANDROID)
207 // Enables media content bitstream remoting, an optimization that can activate 207 // Enables media content bitstream remoting, an optimization that can activate
208 // during Cast Tab Mirroring. 208 // during Cast Tab Mirroring.
209 const base::Feature kMediaRemoting{"MediaRemoting", 209 const base::Feature kMediaRemoting{"MediaRemoting",
210 base::FEATURE_DISABLED_BY_DEFAULT}; 210 base::FEATURE_DISABLED_BY_DEFAULT};
211 211
212 // If enabled, replaces the <extensionview> controller in the route details view 212 // If enabled, replaces the <extensionview> controller in the route details view
213 // of the Media Router dialog with the controller bundled with the WebUI 213 // of the Media Router dialog with the controller bundled with the WebUI
214 // resources. 214 // resources.
215 const base::Feature kMediaRouterUIRouteController{ 215 const base::Feature kMediaRouterUIRouteController{
216 "MediaRouterUIRouteController", base::FEATURE_DISABLED_BY_DEFAULT}; 216 "MediaRouterUIRouteController", base::FEATURE_DISABLED_BY_DEFAULT};
217 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) 217 #endif // !defined(OS_ANDROID)
218 218
219 // Enables or disables modal permission prompts. 219 // Enables or disables modal permission prompts.
220 const base::Feature kModalPermissionPrompts{"ModalPermissionPrompts", 220 const base::Feature kModalPermissionPrompts{"ModalPermissionPrompts",
221 base::FEATURE_DISABLED_BY_DEFAULT}; 221 base::FEATURE_DISABLED_BY_DEFAULT};
222 222
223 #if defined(OS_WIN) 223 #if defined(OS_WIN)
224 // Enables or disables the ModuleDatabase backend for the conflicts UI. 224 // Enables or disables the ModuleDatabase backend for the conflicts UI.
225 const base::Feature kModuleDatabase{"ModuleDatabase", 225 const base::Feature kModuleDatabase{"ModuleDatabase",
226 base::FEATURE_DISABLED_BY_DEFAULT}; 226 base::FEATURE_DISABLED_BY_DEFAULT};
227 #endif 227 #endif
228 228
229 // Enables the use of native notification centers instead of using the Message 229 // Enables the use of native notification centers instead of using the Message
230 // Center for displaying the toasts. 230 // Center for displaying the toasts.
231 #if BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS) 231 #if BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS)
232 #if defined(OS_MACOSX) || defined(OS_ANDROID) 232 #if defined(OS_MACOSX) || defined(OS_ANDROID)
233 const base::Feature kNativeNotifications{"NativeNotifications", 233 const base::Feature kNativeNotifications{"NativeNotifications",
234 base::FEATURE_ENABLED_BY_DEFAULT}; 234 base::FEATURE_ENABLED_BY_DEFAULT};
235 #else 235 #else
236 const base::Feature kNativeNotifications{"NativeNotifications", 236 const base::Feature kNativeNotifications{"NativeNotifications",
237 base::FEATURE_DISABLED_BY_DEFAULT}; 237 base::FEATURE_DISABLED_BY_DEFAULT};
238 #endif 238 #endif
239 #endif // BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS) 239 #endif // BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS)
240 240
241 // If enabled, the list of content suggestions on the New Tab page will contain 241 // If enabled, the list of content suggestions on the New Tab page will contain
242 // pages that the user downloaded for later use. 242 // pages that the user downloaded for later use.
243 const base::Feature kOfflinePageDownloadSuggestionsFeature{ 243 const base::Feature kOfflinePageDownloadSuggestionsFeature{
244 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; 244 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT};
245 245
246 #if !defined(OS_ANDROID) && !defined(OS_IOS) 246 #if !defined(OS_ANDROID)
247 // Enables or disabled the OneGoogleBar on the local NTP. 247 // Enables or disabled the OneGoogleBar on the local NTP.
248 const base::Feature kOneGoogleBarOnLocalNtp{"OneGoogleBarOnLocalNtp", 248 const base::Feature kOneGoogleBarOnLocalNtp{"OneGoogleBarOnLocalNtp",
249 base::FEATURE_DISABLED_BY_DEFAULT}; 249 base::FEATURE_DISABLED_BY_DEFAULT};
250 #endif 250 #endif
251 251
252 // Enables Permissions Blacklisting via Safe Browsing. 252 // Enables Permissions Blacklisting via Safe Browsing.
253 const base::Feature kPermissionsBlacklist{ 253 const base::Feature kPermissionsBlacklist{
254 "PermissionsBlacklist", base::FEATURE_DISABLED_BY_DEFAULT}; 254 "PermissionsBlacklist", base::FEATURE_DISABLED_BY_DEFAULT};
255 255
256 // Disables PostScript generation when printing to PostScript capable printers 256 // Disables PostScript generation when printing to PostScript capable printers
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 return base::FeatureList::IsEnabled(features::kPrefService) || 386 return base::FeatureList::IsEnabled(features::kPrefService) ||
387 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 387 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
388 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 388 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
389 switches::kMusConfig) == switches::kMash; 389 switches::kMusConfig) == switches::kMash;
390 #else 390 #else
391 false; 391 false;
392 #endif 392 #endif
393 } 393 }
394 394
395 } // namespace features 395 } // namespace features
OLDNEW
« no previous file with comments | « chrome/common/chrome_features.h ('k') | chrome/common/chrome_paths_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698