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

Unified Diff: chrome/browser/renderer_context_menu/render_view_context_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
Index: chrome/browser/renderer_context_menu/render_view_context_menu.cc
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu.cc b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
index 689fb0b194a1c1affd124fe8691378eef6880c85..557dd4007b432b7071b9e5ba6b9807254bb05679 100644
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
@@ -1672,9 +1672,6 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
base::FilePath profile_path = profile_info_cache.GetPathOfProfileAtIndex(
id - IDC_OPEN_LINK_IN_PROFILE_FIRST);
- chrome::HostDesktopType desktop_type =
- chrome::GetHostDesktopTypeForNativeView(
- source_web_contents_->GetNativeView());
Profile* profile = profile_manager->GetProfileByPath(profile_path);
UmaEnumOpenLinkAsUser profile_state;
@@ -1691,7 +1688,7 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
profile_state, OPEN_LINK_AS_USER_LAST_ENUM_ID);
profiles::SwitchToProfile(
- profile_path, desktop_type, false,
+ profile_path, false,
base::Bind(OnProfileCreated, params_.link_url,
CreateReferrer(params_.link_url, params_)),
ProfileMetrics::SWITCH_PROFILE_CONTEXT_MENU);

Powered by Google App Engine
This is Rietveld 408576698