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

Unified Diff: chrome/browser/ui/webui/version_handler.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/webui/theme_source.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/version_handler.cc
diff --git a/chrome/browser/ui/webui/version_handler.cc b/chrome/browser/ui/webui/version_handler.cc
index 3d7f7ba7e3b34d99ecd4d88dc43f4fd2d651a33d..d95e8dff4ea51f839618660eb53d1182487cd062 100644
--- a/chrome/browser/ui/webui/version_handler.cc
+++ b/chrome/browser/ui/webui/version_handler.cc
@@ -80,13 +80,12 @@ void VersionHandler::HandleRequestVersionInfo(const base::ListValue* args) {
base::string16* profile_path_buffer = new base::string16;
content::BrowserThread::PostTaskAndReply(
content::BrowserThread::FILE, FROM_HERE,
- base::Bind(&GetFilePaths, Profile::FromWebUI(web_ui())->GetPath(),
+ base::BindOnce(&GetFilePaths, Profile::FromWebUI(web_ui())->GetPath(),
base::Unretained(exec_path_buffer),
base::Unretained(profile_path_buffer)),
- base::Bind(&VersionHandler::OnGotFilePaths,
- weak_ptr_factory_.GetWeakPtr(),
- base::Owned(exec_path_buffer),
- base::Owned(profile_path_buffer)));
+ base::BindOnce(
+ &VersionHandler::OnGotFilePaths, weak_ptr_factory_.GetWeakPtr(),
+ base::Owned(exec_path_buffer), base::Owned(profile_path_buffer)));
// Respond with the variations info immediately.
web_ui()->CallJavascriptFunctionUnsafe(version_ui::kReturnVariationInfo,
« no previous file with comments | « chrome/browser/ui/webui/theme_source.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698