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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 #if BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS) | 254 #if BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS) |
255 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 255 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
256 const base::Feature kNativeNotifications{"NativeNotifications", | 256 const base::Feature kNativeNotifications{"NativeNotifications", |
257 base::FEATURE_ENABLED_BY_DEFAULT}; | 257 base::FEATURE_ENABLED_BY_DEFAULT}; |
258 #else | 258 #else |
259 const base::Feature kNativeNotifications{"NativeNotifications", | 259 const base::Feature kNativeNotifications{"NativeNotifications", |
260 base::FEATURE_DISABLED_BY_DEFAULT}; | 260 base::FEATURE_DISABLED_BY_DEFAULT}; |
261 #endif | 261 #endif |
262 #endif // BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS) | 262 #endif // BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS) |
263 | 263 |
| 264 const base::Feature kNetworkPrediction{"NetworkPrediction", |
| 265 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 266 |
264 // If enabled, the list of content suggestions on the New Tab page will contain | 267 // If enabled, the list of content suggestions on the New Tab page will contain |
265 // pages that the user downloaded for later use. | 268 // pages that the user downloaded for later use. |
266 const base::Feature kOfflinePageDownloadSuggestionsFeature{ | 269 const base::Feature kOfflinePageDownloadSuggestionsFeature{ |
267 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; | 270 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; |
268 | 271 |
269 #if !defined(OS_ANDROID) | 272 #if !defined(OS_ANDROID) |
270 // Enables or disabled the OneGoogleBar on the local NTP. | 273 // Enables or disabled the OneGoogleBar on the local NTP. |
271 const base::Feature kOneGoogleBarOnLocalNtp{"OneGoogleBarOnLocalNtp", | 274 const base::Feature kOneGoogleBarOnLocalNtp{"OneGoogleBarOnLocalNtp", |
272 base::FEATURE_DISABLED_BY_DEFAULT}; | 275 base::FEATURE_DISABLED_BY_DEFAULT}; |
273 #endif | 276 #endif |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 return base::FeatureList::IsEnabled(features::kPrefService) || | 413 return base::FeatureList::IsEnabled(features::kPrefService) || |
411 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 414 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
412 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 415 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
413 switches::kMusConfig) == switches::kMash; | 416 switches::kMusConfig) == switches::kMash; |
414 #else | 417 #else |
415 false; | 418 false; |
416 #endif | 419 #endif |
417 } | 420 } |
418 | 421 |
419 } // namespace features | 422 } // namespace features |
OLD | NEW |