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

Unified Diff: webkit/fileapi/isolated_mount_point_provider.cc

Issue 11358243: Redesigned and refactored ScopedMTPDeviceMapEntry, MTPDeviceMapService & MTPDeviceDelegate classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 8 years, 1 month 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: webkit/fileapi/isolated_mount_point_provider.cc
diff --git a/webkit/fileapi/isolated_mount_point_provider.cc b/webkit/fileapi/isolated_mount_point_provider.cc
index a11731d4e61b5c0eee432bd6e453712abdca7850..62135a822954be7257e3bd0d7adf6b8d99545076 100644
--- a/webkit/fileapi/isolated_mount_point_provider.cc
+++ b/webkit/fileapi/isolated_mount_point_provider.cc
@@ -131,7 +131,8 @@ FileSystemOperation* IsolatedMountPointProvider::CreateFileSystemOperation(
*error_code = base::PLATFORM_FILE_ERROR_NOT_FOUND;
return NULL;
}
- operation_context->set_mtp_device_delegate(device_delegate);
+ operation_context->set_mtp_device_delegate(
+ device_delegate->GetAsWeakPtrOnIOThread());
operation_context->set_task_runner(device_delegate->GetMediaTaskRunner());
operation_context->set_media_path_filter(media_path_filter_.get());
}

Powered by Google App Engine
This is Rietveld 408576698