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

Unified Diff: chrome/browser/chromeos/settings/device_settings_test_helper.cc

Issue 1412813003: 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: Rebased. 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/settings/device_settings_test_helper.cc
diff --git a/chrome/browser/chromeos/settings/device_settings_test_helper.cc b/chrome/browser/chromeos/settings/device_settings_test_helper.cc
index 45236d809bf3fcabebbb08de4da849ba3a75ff21..2fba004d3487fbdce0ffead0d59a541ec4fd3a27 100644
--- a/chrome/browser/chromeos/settings/device_settings_test_helper.cc
+++ b/chrome/browser/chromeos/settings/device_settings_test_helper.cc
@@ -246,12 +246,12 @@ void DeviceSettingsTestBase::ReloadDeviceSettings() {
FlushDeviceSettings();
}
-void DeviceSettingsTestBase::InitOwner(const std::string& user_id,
+void DeviceSettingsTestBase::InitOwner(const AccountId& user_id,
achuithb 2015/10/23 00:08:51 account_id
Alexander Alekseev 2015/10/23 09:11:23 Done.
bool tpm_is_ready) {
const user_manager::User* user = user_manager_->FindUser(user_id);
if (!user) {
user = user_manager_->AddUser(user_id);
- profile_->set_profile_name(user_id);
+ profile_->set_profile_name(user_id.GetUserEmail());
ProfileHelper::Get()->SetUserToProfileMappingForTesting(user,
profile_.get());

Powered by Google App Engine
This is Rietveld 408576698