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

Unified Diff: chrome/browser/profiles/avatar_menu.cc

Issue 1686833003: Remove HostDesktopType from profiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-16
Patch Set: desktop linux and mac Created 4 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_manager_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698