| Index: chrome/browser/chromeos/policy/affiliation_test_helper.cc
|
| diff --git a/chrome/browser/chromeos/policy/affiliation_test_helper.cc b/chrome/browser/chromeos/policy/affiliation_test_helper.cc
|
| index 9a309867bc299809d15b2bfb9f2912afc44a7fd9..acdba14a14bd85e4853d45297eaa7b11066cc2db 100644
|
| --- a/chrome/browser/chromeos/policy/affiliation_test_helper.cc
|
| +++ b/chrome/browser/chromeos/policy/affiliation_test_helper.cc
|
| @@ -133,6 +133,11 @@ void LoginUser(const std::string& user_id) {
|
| void AppendCommandLineSwitchesForLoginManager(base::CommandLine* command_line) {
|
| command_line->AppendSwitch(chromeos::switches::kLoginManager);
|
| command_line->AppendSwitch(chromeos::switches::kForceLoginManagerInTests);
|
| + // LoginManager tests typically don't stand up a policy test server but
|
| + // instead inject policies directly through a SessionManagerClient. So allow
|
| + // policy fetches to fail - this is expected.
|
| + command_line->AppendSwitch(
|
| + chromeos::switches::kAllowFailedPolicyFetchForTest);
|
| }
|
|
|
| } // namespace affiliation_test_helper
|
|
|