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

Unified Diff: chrome/browser/gcm/fake_gcm_profile_service.cc

Issue 2825003002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/{a,b,c,d,e,f,g}* (Closed)
Patch Set: split rest of changes to 3 CLs 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/file_select_helper.cc ('k') | chrome/browser/geolocation/access_token_store_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gcm/fake_gcm_profile_service.cc
diff --git a/chrome/browser/gcm/fake_gcm_profile_service.cc b/chrome/browser/gcm/fake_gcm_profile_service.cc
index 58c18f05392696dbaca6d96eeb315718e8a2205e..63276da65a211309d7d6906b79bf854d93bf2857 100644
--- a/chrome/browser/gcm/fake_gcm_profile_service.cc
+++ b/chrome/browser/gcm/fake_gcm_profile_service.cc
@@ -104,9 +104,9 @@ void FakeGCMProfileService::CustomFakeGCMDriver::RegisterImpl(
++registration_count_;
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE,
- base::Bind(&CustomFakeGCMDriver::DoRegister, weak_factory_.GetWeakPtr(),
- app_id, sender_ids, registration_id));
+ FROM_HERE, base::BindOnce(&CustomFakeGCMDriver::DoRegister,
+ weak_factory_.GetWeakPtr(), app_id, sender_ids,
+ registration_id));
}
void FakeGCMProfileService::CustomFakeGCMDriver::DoRegister(
@@ -131,8 +131,8 @@ void FakeGCMProfileService::CustomFakeGCMDriver::UnregisterImpl(
service_->unregister_responses_.pop_front();
}
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(&CustomFakeGCMDriver::UnregisterFinished,
- weak_factory_.GetWeakPtr(), app_id, result));
+ FROM_HERE, base::BindOnce(&CustomFakeGCMDriver::UnregisterFinished,
+ weak_factory_.GetWeakPtr(), app_id, result));
}
void FakeGCMProfileService::CustomFakeGCMDriver::UnregisterWithSenderIdImpl(
@@ -150,8 +150,8 @@ void FakeGCMProfileService::CustomFakeGCMDriver::SendImpl(
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
- base::Bind(&CustomFakeGCMDriver::DoSend, weak_factory_.GetWeakPtr(),
- app_id, receiver_id, message));
+ base::BindOnce(&CustomFakeGCMDriver::DoSend, weak_factory_.GetWeakPtr(),
+ app_id, receiver_id, message));
}
void FakeGCMProfileService::CustomFakeGCMDriver::DoSend(
« no previous file with comments | « chrome/browser/file_select_helper.cc ('k') | chrome/browser/geolocation/access_token_store_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698