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

Unified Diff: chrome/browser/chromeos/policy/power_policy_browsertest.cc

Issue 270663002: Implemented profile-aware owner key loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes, rebase. Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698