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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
277 const base::Feature kPrefService{"PrefService", | 277 const base::Feature kPrefService{"PrefService", |
278 base::FEATURE_DISABLED_BY_DEFAULT}; | 278 base::FEATURE_DISABLED_BY_DEFAULT}; |
279 | 279 |
280 #if defined(OS_CHROMEOS) | 280 #if defined(OS_CHROMEOS) |
281 // The lock screen will be preloaded so it is instantly available when the user | 281 // The lock screen will be preloaded so it is instantly available when the user |
282 // locks the Chromebook device. | 282 // locks the Chromebook device. |
283 const base::Feature kPreloadLockScreen{"PreloadLockScreen", | 283 const base::Feature kPreloadLockScreen{"PreloadLockScreen", |
284 base::FEATURE_ENABLED_BY_DEFAULT}; | 284 base::FEATURE_ENABLED_BY_DEFAULT}; |
285 #endif | 285 #endif |
286 | 286 |
287 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) | 287 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) && !defined(OS_WIN) && !defined(OS_MACOSX) |
dpapad
2017/05/17 17:32:37
Probably need something as follows to fix compila
rbpotter
2017/05/17 19:17:26
I think it would be better if this feature just is
| |
288 // Enables the Print as Image feature in print preview. | 288 // Enables the Print as Image feature in print preview. |
289 const base::Feature kPrintPdfAsImage{"PrintPdfAsImage", | 289 const base::Feature kPrintPdfAsImage{"PrintPdfAsImage", |
290 base::FEATURE_DISABLED_BY_DEFAULT}; | 290 base::FEATURE_ENABLED_BY_DEFAULT}; |
291 #endif | 291 #endif |
292 | 292 |
293 // Enables or disables push subscriptions keeping Chrome running in the | 293 // Enables or disables push subscriptions keeping Chrome running in the |
294 // background when closed. | 294 // background when closed. |
295 const base::Feature kPushMessagingBackgroundMode{ | 295 const base::Feature kPushMessagingBackgroundMode{ |
296 "PushMessagingBackgroundMode", base::FEATURE_DISABLED_BY_DEFAULT}; | 296 "PushMessagingBackgroundMode", base::FEATURE_DISABLED_BY_DEFAULT}; |
297 | 297 |
298 #if defined(OS_CHROMEOS) | 298 #if defined(OS_CHROMEOS) |
299 // Runtime flag that indicates whether this leak detector should be enabled in | 299 // Runtime flag that indicates whether this leak detector should be enabled in |
300 // the current instance of Chrome. | 300 // the current instance of Chrome. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
377 return base::FeatureList::IsEnabled(features::kPrefService) || | 377 return base::FeatureList::IsEnabled(features::kPrefService) || |
378 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 378 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
379 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 379 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
380 switches::kMusConfig) == switches::kMash; | 380 switches::kMusConfig) == switches::kMash; |
381 #else | 381 #else |
382 false; | 382 false; |
383 #endif | 383 #endif |
384 } | 384 } |
385 | 385 |
386 } // namespace features | 386 } // namespace features |
OLD | NEW |