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

Unified Diff: sync/internal_api/sync_manager.cc

Issue 10542044: [Sync] Remove unnecessary posting of methods in sync scheduler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and fix dcheck Created 8 years, 6 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
« sync/engine/sync_scheduler.cc ('K') | « sync/engine/sync_scheduler_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/sync_manager.cc
diff --git a/sync/internal_api/sync_manager.cc b/sync/internal_api/sync_manager.cc
index 4a5ade25ca31dc808e41019453340a0e152e5e53..1750ae49cfa5f35cbbd24bdd460fd7313639e6e1 100644
--- a/sync/internal_api/sync_manager.cc
+++ b/sync/internal_api/sync_manager.cc
@@ -847,14 +847,14 @@ void SyncManager::RequestCleanupDisabledTypes(
DCHECK(thread_checker_.CalledOnValidThread());
if (data_->scheduler()) {
data_->session_context()->set_routing_info(routing_info);
- data_->scheduler()->ScheduleCleanupDisabledTypes();
+ data_->scheduler()->CleanupDisabledTypes();
}
}
void SyncManager::RequestClearServerData() {
DCHECK(thread_checker_.CalledOnValidThread());
if (data_->scheduler())
- data_->scheduler()->ScheduleClearUserData();
+ data_->scheduler()->ClearUserData();
}
void SyncManager::RequestConfig(
@@ -869,7 +869,7 @@ void SyncManager::RequestConfig(
}
StartConfigurationMode(base::Closure());
data_->session_context()->set_routing_info(routing_info);
- data_->scheduler()->ScheduleConfig(types, GetSourceFromReason(reason));
+ data_->scheduler()->Configure(types, GetSourceFromReason(reason));
}
void SyncManager::StartConfigurationMode(const base::Closure& callback) {
« sync/engine/sync_scheduler.cc ('K') | « sync/engine/sync_scheduler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698