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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
274 #if defined(OS_CHROMEOS) | 274 #if defined(OS_CHROMEOS) |
275 // The lock screen will be preloaded so it is instantly available when the user | 275 // The lock screen will be preloaded so it is instantly available when the user |
276 // locks the Chromebook device. | 276 // locks the Chromebook device. |
277 const base::Feature kPreloadLockScreen{"PreloadLockScreen", | 277 const base::Feature kPreloadLockScreen{"PreloadLockScreen", |
278 base::FEATURE_ENABLED_BY_DEFAULT}; | 278 base::FEATURE_ENABLED_BY_DEFAULT}; |
279 #endif | 279 #endif |
280 | 280 |
281 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) | 281 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
282 // Enables the Print as Image feature in print preview. | 282 // Enables the Print as Image feature in print preview. |
283 const base::Feature kPrintPdfAsImage{"PrintPdfAsImage", | 283 const base::Feature kPrintPdfAsImage{"PrintPdfAsImage", |
284 base::FEATURE_DISABLED_BY_DEFAULT}; | 284 base::FEATURE_ENABLED_BY_DEFAULT}; |
dpapad
2017/05/17 16:35:58
Isn't this enabling by default the feature on all
rbpotter
2017/05/17 16:55:09
Good catch, thanks. Thought I had if defs around t
| |
285 #endif | 285 #endif |
286 | 286 |
287 // Enables or disables push subscriptions keeping Chrome running in the | 287 // Enables or disables push subscriptions keeping Chrome running in the |
288 // background when closed. | 288 // background when closed. |
289 const base::Feature kPushMessagingBackgroundMode{ | 289 const base::Feature kPushMessagingBackgroundMode{ |
290 "PushMessagingBackgroundMode", base::FEATURE_DISABLED_BY_DEFAULT}; | 290 "PushMessagingBackgroundMode", base::FEATURE_DISABLED_BY_DEFAULT}; |
291 | 291 |
292 #if defined(OS_CHROMEOS) | 292 #if defined(OS_CHROMEOS) |
293 // Runtime flag that indicates whether this leak detector should be enabled in | 293 // Runtime flag that indicates whether this leak detector should be enabled in |
294 // the current instance of Chrome. | 294 // the current instance of Chrome. |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
367 return base::FeatureList::IsEnabled(features::kPrefService) || | 367 return base::FeatureList::IsEnabled(features::kPrefService) || |
368 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 368 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
369 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 369 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
370 switches::kMusConfig) == switches::kMash; | 370 switches::kMusConfig) == switches::kMash; |
371 #else | 371 #else |
372 false; | 372 false; |
373 #endif | 373 #endif |
374 } | 374 } |
375 | 375 |
376 } // namespace features | 376 } // namespace features |
OLD | NEW |