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

Unified Diff: chrome/browser/extensions/extension_gcm_app_handler.cc

Issue 2825963003: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/extensions (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/extensions/extension_gcm_app_handler.cc
diff --git a/chrome/browser/extensions/extension_gcm_app_handler.cc b/chrome/browser/extensions/extension_gcm_app_handler.cc
index 417f8ee2bb865094711d3a1f280999501cf06349..7e6ef5c25df76e73f89fe3df5a555967e629dbfe 100644
--- a/chrome/browser/extensions/extension_gcm_app_handler.cc
+++ b/chrome/browser/extensions/extension_gcm_app_handler.cc
@@ -130,8 +130,9 @@ void ExtensionGCMAppHandler::OnExtensionUnloaded(
AddDummyAppHandler();
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(&ExtensionGCMAppHandler::RemoveDummyAppHandler,
- weak_factory_.GetWeakPtr()));
+ FROM_HERE,
+ base::BindOnce(&ExtensionGCMAppHandler::RemoveDummyAppHandler,
+ weak_factory_.GetWeakPtr()));
}
// When the extention is being uninstalled, it will be unloaded first. We
@@ -190,8 +191,8 @@ void ExtensionGCMAppHandler::OnDeleteIDCompleted(
// Postpone to do it outside this calling context to avoid any risk to
// the caller.
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(&ExtensionGCMAppHandler::RemoveInstanceID,
- weak_factory_.GetWeakPtr(), app_id));
+ FROM_HERE, base::BindOnce(&ExtensionGCMAppHandler::RemoveInstanceID,
+ weak_factory_.GetWeakPtr(), app_id));
}
void ExtensionGCMAppHandler::RemoveInstanceID(const std::string& app_id) {

Powered by Google App Engine
This is Rietveld 408576698