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

Unified Diff: chrome/browser/chromeos/net/network_portal_detector_impl_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/net/network_portal_detector_impl_unittest.cc
diff --git a/chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc b/chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc
index e3760aa0b370932e4771b2a397e500805fccd81f..75b5b9ad0d85e36ae64f0638658e50b2372ee19a 100644
--- a/chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc
+++ b/chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc
@@ -89,14 +89,12 @@
ASSERT_TRUE(test_profile_manager_.SetUp());
// Add a user.
- const AccountId test_account_id(
- AccountId::FromUserEmail("test-user@example.com"));
- user_manager->AddUser(test_account_id);
- user_manager->LoginUser(test_account_id);
+ const char kTestUserName[] = "test-user@example.com";
+ user_manager->AddUser(kTestUserName);
+ user_manager->LoginUser(kTestUserName);
// Create a profile for the user.
- profile_ = test_profile_manager_.CreateTestingProfile(
- test_account_id.GetUserEmail());
+ profile_ = test_profile_manager_.CreateTestingProfile(kTestUserName);
test_profile_manager_.SetLoggedIn(true);
EXPECT_TRUE(user_manager::UserManager::Get()->GetPrimaryUser());

Powered by Google App Engine
This is Rietveld 408576698