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

Unified Diff: content/child/fileapi/webfilesystem_impl.cc

Issue 2915503002: Replace deprecated base::NonThreadSafe in content/child/fileapi in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 7 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 | « content/child/fileapi/webfilesystem_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/fileapi/webfilesystem_impl.cc
diff --git a/content/child/fileapi/webfilesystem_impl.cc b/content/child/fileapi/webfilesystem_impl.cc
index 6220488501122bdf98760a5873d33f974fab14fa..8c55be97bf1d89a5c4a2d026b53fe8ca292e228b 100644
--- a/content/child/fileapi/webfilesystem_impl.cc
+++ b/content/child/fileapi/webfilesystem_impl.cc
@@ -397,6 +397,7 @@ WebFileSystemImpl::WebFileSystemImpl(
}
WebFileSystemImpl::~WebFileSystemImpl() {
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
g_webfilesystem_tls.Pointer()->Set(NULL);
}
@@ -654,21 +655,21 @@ bool WebFileSystemImpl::WaitForAdditionalResult(int callbacksId) {
int WebFileSystemImpl::RegisterCallbacks(
const WebFileSystemCallbacks& callbacks) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
int id = next_callbacks_id_++;
callbacks_[id] = callbacks;
return id;
}
WebFileSystemCallbacks WebFileSystemImpl::GetCallbacks(int callbacks_id) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
CallbacksMap::iterator found = callbacks_.find(callbacks_id);
DCHECK(found != callbacks_.end());
return found->second;
}
void WebFileSystemImpl::UnregisterCallbacks(int callbacks_id) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
CallbacksMap::iterator found = callbacks_.find(callbacks_id);
DCHECK(found != callbacks_.end());
callbacks_.erase(found);
« no previous file with comments | « content/child/fileapi/webfilesystem_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698