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

Unified Diff: chrome/browser/ui/toolbar/toolbar_actions_bar.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
« no previous file with comments | « chrome/browser/ui/test/test_browser_dialog.cc ('k') | chrome/browser/ui/toolbar/toolbar_actions_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/toolbar/toolbar_actions_bar.cc
diff --git a/chrome/browser/ui/toolbar/toolbar_actions_bar.cc b/chrome/browser/ui/toolbar/toolbar_actions_bar.cc
index c9766263949396d8df60c9443c92cd108156f2c1..fd0bbf0237042b107005b7cfcae02ed2da6c41af 100644
--- a/chrome/browser/ui/toolbar/toolbar_actions_bar.cc
+++ b/chrome/browser/ui/toolbar/toolbar_actions_bar.cc
@@ -372,8 +372,8 @@ void ToolbarActionsBar::CreateActions() {
// CreateActions() can be called as part of the browser window set up, which
// we need to let finish before showing the actions.
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(&ToolbarActionsBar::MaybeShowExtensionBubble,
- weak_ptr_factory_.GetWeakPtr()));
+ FROM_HERE, base::BindOnce(&ToolbarActionsBar::MaybeShowExtensionBubble,
+ weak_ptr_factory_.GetWeakPtr()));
}
}
@@ -582,9 +582,9 @@ void ToolbarActionsBar::ShowToolbarActionBubble(
void ToolbarActionsBar::ShowToolbarActionBubbleAsync(
std::unique_ptr<ToolbarActionsBarBubbleDelegate> bubble) {
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(&ToolbarActionsBar::ShowToolbarActionBubble,
- weak_ptr_factory_.GetWeakPtr(),
- base::Passed(std::move(bubble))));
+ FROM_HERE, base::BindOnce(&ToolbarActionsBar::ShowToolbarActionBubble,
+ weak_ptr_factory_.GetWeakPtr(),
+ base::Passed(std::move(bubble))));
}
void ToolbarActionsBar::MaybeShowExtensionBubble() {
@@ -607,9 +607,10 @@ void ToolbarActionsBar::MaybeShowExtensionBubble() {
std::unique_ptr<ToolbarActionsBarBubbleDelegate> delegate(
new ExtensionMessageBubbleBridge(std::move(controller)));
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
- FROM_HERE, base::Bind(&ToolbarActionsBar::ShowToolbarActionBubble,
- weak_ptr_factory_.GetWeakPtr(),
- base::Passed(std::move(delegate))),
+ FROM_HERE,
+ base::BindOnce(&ToolbarActionsBar::ShowToolbarActionBubble,
+ weak_ptr_factory_.GetWeakPtr(),
+ base::Passed(std::move(delegate))),
base::TimeDelta::FromSeconds(
g_extension_bubble_appearance_wait_time_in_seconds));
}
« no previous file with comments | « chrome/browser/ui/test/test_browser_dialog.cc ('k') | chrome/browser/ui/toolbar/toolbar_actions_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698