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

Unified Diff: chrome/browser/sync_file_system/drive_backend/list_changes_task.cc

Issue 550903002: [SyncFS] Rename BlockingFactor to TaskBlocker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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_file_system/drive_backend/list_changes_task.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/list_changes_task.cc b/chrome/browser/sync_file_system/drive_backend/list_changes_task.cc
index c6273d2cc8dfc00182c431b74ecc575a27903a12..0c6a1bd0dde030da98b0d26dbc80122c03bed4f0 100644
--- a/chrome/browser/sync_file_system/drive_backend/list_changes_task.cc
+++ b/chrome/browser/sync_file_system/drive_backend/list_changes_task.cc
@@ -40,9 +40,9 @@ void ListChangesTask::RunPreflight(scoped_ptr<SyncTaskToken> token) {
return;
}
- SyncTaskManager::UpdateBlockingFactor(
+ SyncTaskManager::UpdateTaskBlocker(
token.Pass(),
- scoped_ptr<BlockingFactor>(new BlockingFactor),
+ scoped_ptr<TaskBlocker>(new TaskBlocker),
base::Bind(&ListChangesTask::StartListing,
weak_ptr_factory_.GetWeakPtr()));
}
@@ -97,11 +97,11 @@ void ListChangesTask::DidListChanges(
return;
}
- scoped_ptr<BlockingFactor> blocking_factor(new BlockingFactor);
- blocking_factor->exclusive = true;
- SyncTaskManager::UpdateBlockingFactor(
+ scoped_ptr<TaskBlocker> task_blocker(new TaskBlocker);
+ task_blocker->exclusive = true;
+ SyncTaskManager::UpdateTaskBlocker(
token.Pass(),
- blocking_factor.Pass(),
+ task_blocker.Pass(),
base::Bind(&ListChangesTask::CheckInChangeList,
weak_ptr_factory_.GetWeakPtr(),
change_list->largest_change_id()));

Powered by Google App Engine
This is Rietveld 408576698