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

Unified Diff: chrome/browser/sync/notifier/non_blocking_invalidation_notifier.cc

Issue 8341117: Converted top-level NewRunnable* to Bind for Sync module (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Indenting. Removed trailing whitespace. Created 9 years, 2 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/sync/notifier/non_blocking_invalidation_notifier.cc
diff --git a/chrome/browser/sync/notifier/non_blocking_invalidation_notifier.cc b/chrome/browser/sync/notifier/non_blocking_invalidation_notifier.cc
index 8534b126b6ac4c0a4dd679ee2ec7282c21a8c553..40a1f91c9eb8edc6912e93d753e0b25eaa80f6a9 100644
--- a/chrome/browser/sync/notifier/non_blocking_invalidation_notifier.cc
+++ b/chrome/browser/sync/notifier/non_blocking_invalidation_notifier.cc
@@ -159,9 +159,9 @@ NonBlockingInvalidationNotifier::NonBlockingInvalidationNotifier(
GetIOMessageLoopProxy()) {
if (!io_message_loop_proxy_->PostTask(
FROM_HERE,
- NewRunnableMethod(
- core_.get(),
+ base::Bind(
&NonBlockingInvalidationNotifier::Core::Initialize,
+ core_.get(),
notifier_options,
initial_max_invalidation_versions,
invalidation_version_tracker,
@@ -174,9 +174,8 @@ NonBlockingInvalidationNotifier::~NonBlockingInvalidationNotifier() {
DCHECK(parent_message_loop_proxy_->BelongsToCurrentThread());
if (!io_message_loop_proxy_->PostTask(
FROM_HERE,
- NewRunnableMethod(
- core_.get(),
- &NonBlockingInvalidationNotifier::Core::Teardown))) {
+ base::Bind(&NonBlockingInvalidationNotifier::Core::Teardown,
+ core_.get()))) {
NOTREACHED();
}
}
@@ -198,10 +197,8 @@ void NonBlockingInvalidationNotifier::SetUniqueId(
DCHECK(parent_message_loop_proxy_->BelongsToCurrentThread());
if (!io_message_loop_proxy_->PostTask(
FROM_HERE,
- NewRunnableMethod(
- core_.get(),
- &NonBlockingInvalidationNotifier::Core::SetUniqueId,
- unique_id))) {
+ base::Bind(&NonBlockingInvalidationNotifier::Core::SetUniqueId,
+ core_.get(), unique_id))) {
NOTREACHED();
}
}
@@ -210,10 +207,8 @@ void NonBlockingInvalidationNotifier::SetState(const std::string& state) {
DCHECK(parent_message_loop_proxy_->BelongsToCurrentThread());
if (!io_message_loop_proxy_->PostTask(
FROM_HERE,
- NewRunnableMethod(
- core_.get(),
- &NonBlockingInvalidationNotifier::Core::SetState,
- state))) {
+ base::Bind(&NonBlockingInvalidationNotifier::Core::SetState,
+ core_.get(), state))) {
NOTREACHED();
}
}
@@ -223,10 +218,8 @@ void NonBlockingInvalidationNotifier::UpdateCredentials(
DCHECK(parent_message_loop_proxy_->BelongsToCurrentThread());
if (!io_message_loop_proxy_->PostTask(
FROM_HERE,
- NewRunnableMethod(
- core_.get(),
- &NonBlockingInvalidationNotifier::Core::UpdateCredentials,
- email, token))) {
+ base::Bind(&NonBlockingInvalidationNotifier::Core::UpdateCredentials,
+ core_.get(), email, token))) {
NOTREACHED();
}
}
@@ -236,10 +229,8 @@ void NonBlockingInvalidationNotifier::UpdateEnabledTypes(
DCHECK(parent_message_loop_proxy_->BelongsToCurrentThread());
if (!io_message_loop_proxy_->PostTask(
FROM_HERE,
- NewRunnableMethod(
- core_.get(),
- &NonBlockingInvalidationNotifier::Core::UpdateEnabledTypes,
- enabled_types))) {
+ base::Bind(&NonBlockingInvalidationNotifier::Core::UpdateEnabledTypes,
+ core_.get(), enabled_types))) {
NOTREACHED();
}
}
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host.cc ('k') | chrome/browser/sync/profile_sync_service_autofill_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698