Index: chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc |
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc b/chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc |
index 3891232c69c4cfc2ed2ee51d59021ff66cff64ce..2036d5ca553efd0738b18cb80e0e0ce2fd9ade98 100644 |
--- a/chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc |
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc |
@@ -49,6 +49,7 @@ |
#if defined(OS_CHROMEOS) |
#include "chrome/browser/chromeos/profiles/profile_helper.h" |
+#include "components/signin/core/account_id/account_id.h" |
#include "components/user_manager/user_manager.h" |
#endif |
@@ -109,8 +110,9 @@ class ContextMenuBrowserTest : public InProcessBrowserTest { |
#if defined(OS_CHROMEOS) |
std::string profile_name = base::StringPrintf("NewProfile%d", profile_num); |
user_manager::UserManager::Get()->UserLoggedIn( |
- base::StringPrintf("user%d@test.com", profile_num), profile_name, |
- false); |
+ AccountId::FromUserEmail( |
+ base::StringPrintf("user%d@test.com", profile_num)), |
+ profile_name, false); |
profile_path = profile_path.Append( |
chromeos::ProfileHelper::GetUserProfileDir(profile_name).BaseName()); |
#else |