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

Unified Diff: chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc

Issue 1697183003: Remove HostDesktopType from sessions and tab restore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-19
Patch Set: 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/ui/toolbar/recent_tabs_sub_menu_model.cc
diff --git a/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc b/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc
index 5fcea34abea7bf6ed4e5b2309d9931bdf48a4003..30f30aa0386a803efa6bcf81e23d1fb1c9cf4da1 100644
--- a/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc
+++ b/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc
@@ -309,8 +309,7 @@ void RecentTabsSubMenuModel::ExecuteCommand(int command_id, int event_flags) {
base::UserMetricsAction("WrenchMenu_OpenRecentTabFromLocal"));
UMA_HISTOGRAM_ENUMERATION("WrenchMenu.RecentTabsSubMenu",
LOCAL_SESSION_TAB, LIMIT_RECENT_TAB_ACTION);
- service->RestoreEntryById(context, item.tab_id,
- browser_->host_desktop_type(), disposition);
+ service->RestoreEntryById(context, item.tab_id, disposition);
}
} else { // Restore tab of session from other devices.
sync_driver::OpenTabsUIDelegate* open_tabs = GetOpenTabsUIDelegate();
@@ -340,7 +339,7 @@ void RecentTabsSubMenuModel::ExecuteCommand(int command_id, int event_flags) {
UMA_HISTOGRAM_ENUMERATION("WrenchMenu.RecentTabsSubMenu", RESTORE_WINDOW,
LIMIT_RECENT_TAB_ACTION);
service->RestoreEntryById(context, local_window_items_[window_items_idx],
- browser_->host_desktop_type(), disposition);
+ disposition);
}
}
UMA_HISTOGRAM_MEDIUM_TIMES("WrenchMenu.TimeToAction.OpenRecentTab",
« no previous file with comments | « chrome/browser/ui/cocoa/history_menu_cocoa_controller.mm ('k') | chrome/browser/ui/views/frame/global_menu_bar_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698