OLD | NEW |
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 base::FEATURE_DISABLED_BY_DEFAULT}; | 197 base::FEATURE_DISABLED_BY_DEFAULT}; |
198 | 198 |
199 #if defined(OS_WIN) | 199 #if defined(OS_WIN) |
200 // Enables or disables the ModuleDatabase backend for the conflicts UI. | 200 // Enables or disables the ModuleDatabase backend for the conflicts UI. |
201 const base::Feature kModuleDatabase{"ModuleDatabase", | 201 const base::Feature kModuleDatabase{"ModuleDatabase", |
202 base::FEATURE_DISABLED_BY_DEFAULT}; | 202 base::FEATURE_DISABLED_BY_DEFAULT}; |
203 #endif | 203 #endif |
204 | 204 |
205 // Enables the use of native notification centers instead of using the Message | 205 // Enables the use of native notification centers instead of using the Message |
206 // Center for displaying the toasts. | 206 // Center for displaying the toasts. |
207 #if defined(OS_MACOSX) | 207 #if defined(OS_MACOSX) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) |
208 const base::Feature kNativeNotifications{"NativeNotifications", | 208 const base::Feature kNativeNotifications{"NativeNotifications", |
209 base::FEATURE_DISABLED_BY_DEFAULT}; | 209 base::FEATURE_DISABLED_BY_DEFAULT}; |
210 #endif // defined(OS_MACOSX) | 210 #endif // defined(OS_MACOSX) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) |
211 | 211 |
212 // If enabled, the list of content suggestions on the New Tab page will contain | 212 // If enabled, the list of content suggestions on the New Tab page will contain |
213 // pages that the user downloaded for later use. | 213 // pages that the user downloaded for later use. |
214 const base::Feature kOfflinePageDownloadSuggestionsFeature{ | 214 const base::Feature kOfflinePageDownloadSuggestionsFeature{ |
215 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; | 215 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; |
216 | 216 |
217 // Enables Permissions Blacklisting via Safe Browsing. | 217 // Enables Permissions Blacklisting via Safe Browsing. |
218 const base::Feature kPermissionsBlacklist{ | 218 const base::Feature kPermissionsBlacklist{ |
219 "PermissionsBlacklist", base::FEATURE_DISABLED_BY_DEFAULT}; | 219 "PermissionsBlacklist", base::FEATURE_DISABLED_BY_DEFAULT}; |
220 | 220 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 return base::FeatureList::IsEnabled(features::kPrefService) || | 317 return base::FeatureList::IsEnabled(features::kPrefService) || |
318 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 318 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
319 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 319 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
320 switches::kMusConfig) == switches::kMash; | 320 switches::kMusConfig) == switches::kMash; |
321 #else | 321 #else |
322 false; | 322 false; |
323 #endif | 323 #endif |
324 } | 324 } |
325 | 325 |
326 } // namespace features | 326 } // namespace features |
OLD | NEW |