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

Unified Diff: chrome/browser/chromeos/power/extension_event_observer_unittest.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: Fix Win GN build. Created 5 years, 1 month 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/power/extension_event_observer_unittest.cc
diff --git a/chrome/browser/chromeos/power/extension_event_observer_unittest.cc b/chrome/browser/chromeos/power/extension_event_observer_unittest.cc
index 455fb6a3624e27ec358b42b9347147ac0fd8149e..06fff499438e47d3bf960b8f96c086bc061c858b 100644
--- a/chrome/browser/chromeos/power/extension_event_observer_unittest.cc
+++ b/chrome/browser/chromeos/power/extension_event_observer_unittest.cc
@@ -68,9 +68,11 @@ class ExtensionEventObserverTest : public ::testing::Test {
ASSERT_TRUE(profile_manager_->SetUp());
const char kUserProfile[] = "profile1@example.com";
- fake_user_manager_->AddUser(kUserProfile);
- fake_user_manager_->LoginUser(kUserProfile);
- profile_ = profile_manager_->CreateTestingProfile(kUserProfile);
+ const AccountId account_id(AccountId::FromUserEmail(kUserProfile));
+ fake_user_manager_->AddUser(account_id);
+ fake_user_manager_->LoginUser(account_id);
+ profile_ =
+ profile_manager_->CreateTestingProfile(account_id.GetUserEmail());
profile_manager_->SetLoggedIn(true);
}

Powered by Google App Engine
This is Rietveld 408576698