| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/browser/signin/signin_util.h" | 5 #include "chrome/browser/signin/signin_util.h" |
| 6 | 6 |
| 7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
| 8 #include "chrome/browser/prefs/browser_prefs.h" | 8 #include "chrome/browser/prefs/browser_prefs.h" |
| 9 #include "chrome/common/pref_names.h" | 9 #include "chrome/common/pref_names.h" |
| 10 #include "chrome/test/base/browser_with_test_window_test.h" | 10 #include "chrome/test/base/browser_with_test_window_test.h" |
| 11 #include "chrome/test/base/testing_browser_process.h" | 11 #include "chrome/test/base/testing_browser_process.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 g_browser_process->local_state()->SetBoolean(prefs::kForceBrowserSignin, | 33 g_browser_process->local_state()->SetBoolean(prefs::kForceBrowserSignin, |
| 34 true); | 34 true); |
| 35 ASSERT_TRUE(signin_util::IsForceSigninEnabled()); | 35 ASSERT_TRUE(signin_util::IsForceSigninEnabled()); |
| 36 g_browser_process->local_state()->SetBoolean(prefs::kForceBrowserSignin, | 36 g_browser_process->local_state()->SetBoolean(prefs::kForceBrowserSignin, |
| 37 false); | 37 false); |
| 38 ASSERT_TRUE(signin_util::IsForceSigninEnabled()); | 38 ASSERT_TRUE(signin_util::IsForceSigninEnabled()); |
| 39 | 39 |
| 40 TestingBrowserProcess::GetGlobal()->SetLocalState(nullptr); | 40 TestingBrowserProcess::GetGlobal()->SetLocalState(nullptr); |
| 41 } | 41 } |
| OLD | NEW |