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

Unified Diff: chrome/browser/chromeos/ownership/owner_settings_service_chromeos_unittest.cc

Issue 1425093004: Revert of This CL replaces user_manager::UserID with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@468875--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part2--user_names
Patch Set: Created 5 years, 2 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/ownership/owner_settings_service_chromeos_unittest.cc
diff --git a/chrome/browser/chromeos/ownership/owner_settings_service_chromeos_unittest.cc b/chrome/browser/chromeos/ownership/owner_settings_service_chromeos_unittest.cc
index 1a36696cd89e86f51f5ab346828a37d51f2ea971..aa4d68909d788b970ec2f9686fbda4d0d03de51f 100644
--- a/chrome/browser/chromeos/ownership/owner_settings_service_chromeos_unittest.cc
+++ b/chrome/browser/chromeos/ownership/owner_settings_service_chromeos_unittest.cc
@@ -100,8 +100,7 @@
provider_.reset(new DeviceSettingsProvider(base::Bind(&OnPrefChanged),
&device_settings_service_));
owner_key_util_->SetPrivateKey(device_policy_.GetSigningKey());
- InitOwner(AccountId::FromUserEmail(device_policy_.policy_data().username()),
- true);
+ InitOwner(device_policy_.policy_data().username(), true);
FlushDeviceSettings();
service_ = OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(
@@ -343,8 +342,7 @@
EXPECT_FALSE(FindInListValue(device_policy_.policy_data().username(),
provider_->Get(kAccountsPrefUsers)));
owner_key_util_->SetPrivateKey(device_policy_.GetSigningKey());
- InitOwner(AccountId::FromUserEmail(device_policy_.policy_data().username()),
- true);
+ InitOwner(device_policy_.policy_data().username(), true);
ReloadDeviceSettings();
ASSERT_TRUE(service_->IsOwner());

Powered by Google App Engine
This is Rietveld 408576698