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

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

Issue 2768633003: Dynamic updating recent menu for tabs from other devices. (Closed)
Patch Set: Fixes compilation and test on Mac. Created 3 years, 9 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/app_menu_model.cc
diff --git a/chrome/browser/ui/toolbar/app_menu_model.cc b/chrome/browser/ui/toolbar/app_menu_model.cc
index f12a8da755729562051d48f03d81aa4ec0fa5c99..7ef2d8ba5794dbd1cc42f69383d7da3e3ba8e293 100644
--- a/chrome/browser/ui/toolbar/app_menu_model.cc
+++ b/chrome/browser/ui/toolbar/app_menu_model.cc
@@ -717,9 +717,8 @@ void AppMenuModel::Build() {
AddSeparator(ui::NORMAL_SEPARATOR);
if (!browser_->profile()->IsOffTheRecord()) {
- recent_tabs_sub_menu_model_.reset(new RecentTabsSubMenuModel(provider_,
- browser_,
- NULL));
+ recent_tabs_sub_menu_model_ =
+ base::MakeUnique<RecentTabsSubMenuModel>(provider_, browser_);
AddSubMenuWithStringId(IDC_RECENT_TABS_MENU, IDS_HISTORY_MENU,
recent_tabs_sub_menu_model_.get());
}

Powered by Google App Engine
This is Rietveld 408576698