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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator.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/startup/startup_browser_creator.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator.cc b/chrome/browser/ui/startup/startup_browser_creator.cc
index c5491bc439d7dfa486730411815d7afb9d4969aa..8f7a959262d872e974430d1a1f886b96ad1739ee 100644
--- a/chrome/browser/ui/startup/startup_browser_creator.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator.cc
@@ -203,8 +203,8 @@ class ProfileLaunchObserver : public content::NotificationObserver {
// open and activate before trying to activate |profile_to_activate_|.
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- base::Bind(&ProfileLaunchObserver::ActivateProfile,
- base::Unretained(this)));
+ base::BindOnce(&ProfileLaunchObserver::ActivateProfile,
+ base::Unretained(this)));
// Avoid posting more than once before ActivateProfile gets called.
registrar_.Remove(this, chrome::NOTIFICATION_BROWSER_WINDOW_READY,
content::NotificationService::AllSources());
@@ -688,7 +688,7 @@ bool StartupBrowserCreator::ProcessCmdLineImpl(
.MayBlock()
.WithPriority(base::TaskPriority::BACKGROUND)
.WithShutdownBehavior(base::TaskShutdownBehavior::BLOCK_SHUTDOWN),
- base::Bind(&DumpBrowserHistograms, output_file));
+ base::BindOnce(&DumpBrowserHistograms, output_file));
}
silent_launch = true;
}

Powered by Google App Engine
This is Rietveld 408576698