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 08b16f6d419922bc80ce52d651aa033575a3bcaf..da8f4161839340f9234b64b0835bf07e2d139237 100644 |
--- a/chrome/browser/chromeos/policy/power_policy_browsertest.cc |
+++ b/chrome/browser/chromeos/policy/power_policy_browsertest.cc |
@@ -307,7 +307,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. |