Index: chrome/browser/chromeos/policy/power_policy_browsertest.cc |
diff --git a/chrome/browser/chromeos/policy/power_policy_browsertest.cc b/chrome/browser/chromeos/policy/power_policy_browsertest.cc |
index af8df9012f351927e810ec42a960cf89ada8b839..29979e52f66b6871c7d2df1ff0031061451a8cea 100644 |
--- a/chrome/browser/chromeos/policy/power_policy_browsertest.cc |
+++ b/chrome/browser/chromeos/policy/power_policy_browsertest.cc |
@@ -310,7 +310,8 @@ void PowerPolicyInSessionBrowserTest::SetUpOnMainThread() { |
PowerPolicyBrowserTestBase::SetUpOnMainThread(); |
// Tell the DeviceSettingsService that there is no local owner. |
- chromeos::DeviceSettingsService::Get()->SetUsername(std::string()); |
+ crypto::ScopedPK11Slot slot; |
+ chromeos::DeviceSettingsService::Get()->InitOwner(std::string(), slot.Pass()); |
} |
// Verifies that device policy is applied on the login screen. |