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

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 1727413002: Reland: No longer start up profile if there was an error fetching policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 9
10 // TODO(rsorokin): alphabetize all of these switches so they 10 // TODO(rsorokin): alphabetize all of these switches so they
11 // match the order from the .h file 11 // match the order from the .h file
12 12
13 namespace chromeos { 13 namespace chromeos {
14 namespace switches { 14 namespace switches {
15 // If this flag is passed, failed policy fetches will not cause profile
16 // initialization to fail. This is useful for tests because it means that
17 // tests don't have to mock out the policy infrastructure.
18 const char kAllowFailedPolicyFetchForTest[] =
19 "allow-failed-policy-fetch-for-test";
15 20
16 // Allows remote attestation (RA) in dev mode for testing purpose. Usually RA 21 // Allows remote attestation (RA) in dev mode for testing purpose. Usually RA
17 // is disabled in dev mode because it will always fail. However, there are cases 22 // is disabled in dev mode because it will always fail. However, there are cases
18 // in testing where we do want to go through the permission flow even in dev 23 // in testing where we do want to go through the permission flow even in dev
19 // mode. This can be enabled by this flag. 24 // mode. This can be enabled by this flag.
20 const char kAllowRAInDevMode[] = "allow-ra-in-dev-mode"; 25 const char kAllowRAInDevMode[] = "allow-ra-in-dev-mode";
21 26
22 // Path for app's OEM manifest file. 27 // Path for app's OEM manifest file.
23 const char kAppOemManifestFile[] = "app-mode-oem-manifest"; 28 const char kAppOemManifestFile[] = "app-mode-oem-manifest";
24 29
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 402 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
398 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) 403 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration))
399 return false; 404 return false;
400 405
401 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == 406 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) ==
402 kTestCrosGaiaIdMigrationStarted; 407 kTestCrosGaiaIdMigrationStarted;
403 } 408 }
404 409
405 } // namespace switches 410 } // namespace switches
406 } // namespace chromeos 411 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | components/policy/core/browser/browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698