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

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 1965913005: ChromeOS: Implement minumal material design OOBE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix presubmit. Created 4 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
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 // "" - default, 358 // "" - default,
359 // "started" - migration started (i.e. all stored user keys will be converted 359 // "started" - migration started (i.e. all stored user keys will be converted
360 // to GaiaId). 360 // to GaiaId).
361 const char kTestCrosGaiaIdMigration[] = "test-cros-gaia-id-migration"; 361 const char kTestCrosGaiaIdMigration[] = "test-cros-gaia-id-migration";
362 const char kTestCrosGaiaIdMigrationStarted[] = "started"; 362 const char kTestCrosGaiaIdMigrationStarted[] = "started";
363 363
364 // This flag enables SystemTimezoneAutomaticDetection policy. 364 // This flag enables SystemTimezoneAutomaticDetection policy.
365 const char kEnableSystemTimezoneAutomaticDetectionPolicy[] = 365 const char kEnableSystemTimezoneAutomaticDetectionPolicy[] =
366 "enable-system-timezone-automatic-detection"; 366 "enable-system-timezone-automatic-detection";
367 367
368 // This flag enables material design OOBE UI.
369 const char kEnableMdOobe[] = "enable-md-oobe";
370
368 bool WakeOnWifiEnabled() { 371 bool WakeOnWifiEnabled() {
369 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); 372 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi);
370 } 373 }
371 374
372 bool MemoryPressureHandlingEnabled() { 375 bool MemoryPressureHandlingEnabled() {
373 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == 376 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) ==
374 kMemoryPressureHandlingOff) { 377 kMemoryPressureHandlingOff) {
375 return false; 378 return false;
376 } 379 }
377 return true; 380 return true;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 418 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
416 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) 419 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration))
417 return false; 420 return false;
418 421
419 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == 422 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) ==
420 kTestCrosGaiaIdMigrationStarted; 423 kTestCrosGaiaIdMigrationStarted;
421 } 424 }
422 425
423 } // namespace switches 426 } // namespace switches
424 } // namespace chromeos 427 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698