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

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

Issue 2189113002: Rename CalledOnValidSequencedThread() to CalledOnValidSequence(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/drive_service_wrapper.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/drive_service_wrapper.cc b/chrome/browser/sync_file_system/drive_backend/drive_service_wrapper.cc
index e7a2984b23c647fd5108ee257553dfb49eea1ffe..c679243f00cd3d97917edfad2b725257f3b9f5c6 100644
--- a/chrome/browser/sync_file_system/drive_backend/drive_service_wrapper.cc
+++ b/chrome/browser/sync_file_system/drive_backend/drive_service_wrapper.cc
@@ -23,7 +23,7 @@ void DriveServiceWrapper::AddNewDirectory(
const std::string& directory_title,
const drive::AddNewDirectoryOptions& options,
const google_apis::FileResourceCallback& callback) {
- DCHECK(sequece_checker_.CalledOnValidSequencedThread());
+ DCHECK(sequece_checker_.CalledOnValidSequence());
drive_service_->AddNewDirectory(parent_resource_id,
directory_title,
options,
@@ -34,7 +34,7 @@ void DriveServiceWrapper::DeleteResource(
const std::string& resource_id,
const std::string& etag,
const google_apis::EntryActionCallback& callback) {
- DCHECK(sequece_checker_.CalledOnValidSequencedThread());
+ DCHECK(sequece_checker_.CalledOnValidSequence());
drive_service_->DeleteResource(resource_id,
etag,
callback);
@@ -46,7 +46,7 @@ void DriveServiceWrapper::DownloadFile(
const google_apis::DownloadActionCallback& download_action_callback,
const google_apis::GetContentCallback& get_content_callback,
const google_apis::ProgressCallback& progress_callback) {
- DCHECK(sequece_checker_.CalledOnValidSequencedThread());
+ DCHECK(sequece_checker_.CalledOnValidSequence());
drive_service_->DownloadFile(local_cache_path,
resource_id,
download_action_callback,
@@ -56,42 +56,42 @@ void DriveServiceWrapper::DownloadFile(
void DriveServiceWrapper::GetAboutResource(
const google_apis::AboutResourceCallback& callback) {
- DCHECK(sequece_checker_.CalledOnValidSequencedThread());
+ DCHECK(sequece_checker_.CalledOnValidSequence());
drive_service_->GetAboutResource(callback);
}
void DriveServiceWrapper::GetChangeList(
int64_t start_changestamp,
const google_apis::ChangeListCallback& callback) {
- DCHECK(sequece_checker_.CalledOnValidSequencedThread());
+ DCHECK(sequece_checker_.CalledOnValidSequence());
drive_service_->GetChangeList(start_changestamp, callback);
}
void DriveServiceWrapper::GetRemainingChangeList(
const GURL& next_link,
const google_apis::ChangeListCallback& callback) {
- DCHECK(sequece_checker_.CalledOnValidSequencedThread());
+ DCHECK(sequece_checker_.CalledOnValidSequence());
drive_service_->GetRemainingChangeList(next_link, callback);
}
void DriveServiceWrapper::GetRemainingFileList(
const GURL& next_link,
const google_apis::FileListCallback& callback) {
- DCHECK(sequece_checker_.CalledOnValidSequencedThread());
+ DCHECK(sequece_checker_.CalledOnValidSequence());
drive_service_->GetRemainingFileList(next_link, callback);
}
void DriveServiceWrapper::GetFileResource(
const std::string& resource_id,
const google_apis::FileResourceCallback& callback) {
- DCHECK(sequece_checker_.CalledOnValidSequencedThread());
+ DCHECK(sequece_checker_.CalledOnValidSequence());
drive_service_->GetFileResource(resource_id, callback);
}
void DriveServiceWrapper::GetFileListInDirectory(
const std::string& directory_resource_id,
const google_apis::FileListCallback& callback) {
- DCHECK(sequece_checker_.CalledOnValidSequencedThread());
+ DCHECK(sequece_checker_.CalledOnValidSequence());
drive_service_->GetFileListInDirectory(directory_resource_id, callback);
}
@@ -99,7 +99,7 @@ void DriveServiceWrapper::RemoveResourceFromDirectory(
const std::string& parent_resource_id,
const std::string& resource_id,
const google_apis::EntryActionCallback& callback) {
- DCHECK(sequece_checker_.CalledOnValidSequencedThread());
+ DCHECK(sequece_checker_.CalledOnValidSequence());
drive_service_->RemoveResourceFromDirectory(
parent_resource_id, resource_id, callback);
}
@@ -108,7 +108,7 @@ void DriveServiceWrapper::SearchByTitle(
const std::string& title,
const std::string& directory_resource_id,
const google_apis::FileListCallback& callback) {
- DCHECK(sequece_checker_.CalledOnValidSequencedThread());
+ DCHECK(sequece_checker_.CalledOnValidSequence());
drive_service_->SearchByTitle(
title, directory_resource_id, callback);
}

Powered by Google App Engine
This is Rietveld 408576698