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

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

Issue 270663002: Implemented profile-aware owner key loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests. 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/login_screen_default_policy_browsertest.cc
diff --git a/chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc b/chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc
index d37f7afa090cadc1091fc9adc764e843462bb23f..6405b4b2dfe258943fdb9c3cc8ec1a303de64576 100644
--- a/chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc
+++ b/chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc
@@ -222,7 +222,8 @@ void LoginScreenDefaultPolicyInSessionBrowsertest::SetUpOnMainThread() {
LoginScreenDefaultPolicyBrowsertestBase::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());
}
void LoginScreenDefaultPolicyInSessionBrowsertest::VerifyPrefFollowsDefault(

Powered by Google App Engine
This is Rietveld 408576698