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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_button.cc

Issue 2824363002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/ui (Closed)
Patch Set: Created 3 years, 8 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/views/toolbar/toolbar_button.cc
diff --git a/chrome/browser/ui/views/toolbar/toolbar_button.cc b/chrome/browser/ui/views/toolbar/toolbar_button.cc
index e529cf66a34dc5c48c0ac509a6fbabca5db3fb43..50ee412ecedbe8c557d41d99794b433bbd4cead8 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_button.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_button.cc
@@ -70,9 +70,10 @@ bool ToolbarButton::OnMousePressed(const ui::MouseEvent& event) {
// Schedule a task that will show the menu.
const int kMenuTimerDelay = 500;
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
- FROM_HERE, base::Bind(&ToolbarButton::ShowDropDownMenu,
- show_menu_factory_.GetWeakPtr(),
- ui::GetMenuSourceTypeForEvent(event)),
+ FROM_HERE,
+ base::BindOnce(&ToolbarButton::ShowDropDownMenu,
+ show_menu_factory_.GetWeakPtr(),
+ ui::GetMenuSourceTypeForEvent(event)),
base::TimeDelta::FromMilliseconds(kMenuTimerDelay));
}

Powered by Google App Engine
This is Rietveld 408576698