Index: chrome/browser/profiles/avatar_menu.cc |
diff --git a/chrome/browser/profiles/avatar_menu.cc b/chrome/browser/profiles/avatar_menu.cc |
index 64978fc40fb2159cfda36ee3c7b47367cfc62a3d..44ddd789b3987e6503b931e083c0276cbe4d1fb0 100644 |
--- a/chrome/browser/profiles/avatar_menu.cc |
+++ b/chrome/browser/profiles/avatar_menu.cc |
@@ -127,13 +127,8 @@ void AvatarMenu::SwitchToProfile(size_t index, |
base::FilePath path = |
profile_info_->GetPathOfProfileAtIndex(item.profile_index); |
- chrome::HostDesktopType desktop_type = chrome::GetActiveDesktop(); |
- if (browser_) |
- desktop_type = browser_->host_desktop_type(); |
- |
- profiles::SwitchToProfile(path, desktop_type, always_create, |
- ProfileManager::CreateCallback(), |
- metric); |
+ profiles::SwitchToProfile(path, always_create, |
+ ProfileManager::CreateCallback(), metric); |
} |
void AvatarMenu::AddNewProfile(ProfileMetrics::ProfileAdd type) { |