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

Unified Diff: trunk/src/chrome/utility/media_galleries/ipc_data_source.cc

Issue 421843004: Revert 285479 "Make DataSource::Stop() synchronous." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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: trunk/src/chrome/utility/media_galleries/ipc_data_source.cc
===================================================================
--- trunk/src/chrome/utility/media_galleries/ipc_data_source.cc (revision 285857)
+++ trunk/src/chrome/utility/media_galleries/ipc_data_source.cc (working copy)
@@ -21,8 +21,9 @@
DCHECK(utility_thread_checker_.CalledOnValidThread());
}
-void IPCDataSource::Stop() {
+void IPCDataSource::Stop(const base::Closure& callback) {
DCHECK(data_source_thread_checker_.CalledOnValidThread());
+ callback.Run();
}
void IPCDataSource::Read(int64 position, int size, uint8* data,
« no previous file with comments | « trunk/src/chrome/utility/media_galleries/ipc_data_source.h ('k') | trunk/src/content/renderer/media/buffered_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698