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

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

Issue 2856913005: Add flags for CrOS Component using Feature API (Closed)
Patch Set: Add flags for CrOS Component using Feature API Created 3 years, 7 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
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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 const base::Feature kQuickUnlockFingerprint{"QuickUnlockFingerprint", 331 const base::Feature kQuickUnlockFingerprint{"QuickUnlockFingerprint",
332 base::FEATURE_DISABLED_BY_DEFAULT}; 332 base::FEATURE_DISABLED_BY_DEFAULT};
333 333
334 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. 334 // Enables or disables emoji, handwriting and voice input on opt-in IME menu.
335 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", 335 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput",
336 base::FEATURE_ENABLED_BY_DEFAULT}; 336 base::FEATURE_ENABLED_BY_DEFAULT};
337 337
338 // Enables or disables flash component updates on Chrome OS. 338 // Enables or disables flash component updates on Chrome OS.
339 const base::Feature kCrosCompUpdates{"CrosCompUpdates", 339 const base::Feature kCrosCompUpdates{"CrosCompUpdates",
340 base::FEATURE_ENABLED_BY_DEFAULT}; 340 base::FEATURE_ENABLED_BY_DEFAULT};
341
342 // Enables or disables Chrome OS Component updates on Chrome OS.
343 const base::Feature kCrOSComponent{"CrOSComponent",
344 base::FEATURE_DISABLED_BY_DEFAULT};
341 #endif // defined(OS_CHROMEOS) 345 #endif // defined(OS_CHROMEOS)
342 346
343 bool PrefServiceEnabled() { 347 bool PrefServiceEnabled() {
344 return base::FeatureList::IsEnabled(features::kPrefService) || 348 return base::FeatureList::IsEnabled(features::kPrefService) ||
345 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 349 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
346 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 350 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
347 switches::kMusConfig) == switches::kMash; 351 switches::kMusConfig) == switches::kMash;
348 #else 352 #else
349 false; 353 false;
350 #endif 354 #endif
351 } 355 }
352 356
353 } // namespace features 357 } // namespace features
OLDNEW
« chrome/browser/flag_descriptions.cc ('K') | « chrome/common/chrome_features.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698