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

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 2585633004: ozone: Allow ozone evdev/kvm features to be enabled without running on ChromeOS. (Closed)
Patch Set: only add //chromeos to deps if is_chromeos Created 3 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chromeos/chromeos_switches.h" 5 #include "chromeos/chromeos_switches.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 // Enables testing for auto update UI. 411 // Enables testing for auto update UI.
412 const char kTestAutoUpdateUI[] = "test-auto-update-ui"; 412 const char kTestAutoUpdateUI[] = "test-auto-update-ui";
413 413
414 // Determines which Google Privacy CA to use for attestation. 414 // Determines which Google Privacy CA to use for attestation.
415 const char kAttestationServer[] = "attestation-server"; 415 const char kAttestationServer[] = "attestation-server";
416 416
417 // Enables wake on wifi packet feature, which wakes the device on the receipt 417 // Enables wake on wifi packet feature, which wakes the device on the receipt
418 // of network packets from whitelisted sources. 418 // of network packets from whitelisted sources.
419 const char kWakeOnWifiPacket[] = "wake-on-wifi-packet"; 419 const char kWakeOnWifiPacket[] = "wake-on-wifi-packet";
420 420
421 // Force system compositor mode when set.
422 const char kEnableSystemCompositorMode[] = "enable-system-compositor-mode";
423
424 // Force disabling of system compositor mode when set.
425 const char kDisableSystemCompositorMode[] = "disable-system-compositor-mode";
oshima 2017/01/05 22:43:57 optional suggestion: FeatureList instead of two fl
reveman 2017/01/06 08:15:14 I changed to a single flag in latest patch as I do
426
421 bool WakeOnWifiEnabled() { 427 bool WakeOnWifiEnabled() {
422 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); 428 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi);
423 } 429 }
424 430
425 bool MemoryPressureHandlingEnabled() { 431 bool MemoryPressureHandlingEnabled() {
426 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == 432 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) ==
427 kMemoryPressureHandlingOff) { 433 kMemoryPressureHandlingOff) {
428 return false; 434 return false;
429 } 435 }
430 return true; 436 return true;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 474 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
469 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) 475 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration))
470 return false; 476 return false;
471 477
472 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == 478 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) ==
473 kTestCrosGaiaIdMigrationStarted; 479 kTestCrosGaiaIdMigrationStarted;
474 } 480 }
475 481
476 } // namespace switches 482 } // namespace switches
477 } // namespace chromeos 483 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698