Index: content/browser/media/android/media_resource_getter_impl.cc |
diff --git a/content/browser/media/android/media_resource_getter_impl.cc b/content/browser/media/android/media_resource_getter_impl.cc |
index 686e01c331c43ca5535f49931315006fafe1ccf8..99142e11398befa8f6a61586a50911e53c88ded0 100644 |
--- a/content/browser/media/android/media_resource_getter_impl.cc |
+++ b/content/browser/media/android/media_resource_getter_impl.cc |
@@ -28,6 +28,8 @@ |
#include "net/url_request/url_request_context.h" |
#include "net/url_request/url_request_context_getter.h" |
#include "storage/browser/blob/blob_data_handle.h" |
+#include "storage/browser/blob/blob_data_item.h" |
+#include "storage/browser/blob/blob_data_snapshot.h" |
#include "storage/browser/blob/blob_storage_context.h" |
#include "url/gurl.h" |
@@ -59,18 +61,19 @@ static void RequestPlatformPathFromBlobURL( |
ReturnResultOnUIThread(callback, std::string()); |
return; |
} |
- storage::BlobData* data = handle->data(); |
+ scoped_ptr<storage::BlobDataSnapshot> data = handle->CreateSnapshot(); |
if (!data) { |
ReturnResultOnUIThread(callback, std::string()); |
NOTREACHED(); |
return; |
} |
- const std::vector<storage::BlobData::Item> items = data->items(); |
+ const std::vector<scoped_refptr<storage::BlobDataItem>>& items = |
+ data->items(); |
// TODO(qinmin): handle the case when the blob data is not a single file. |
DLOG_IF(WARNING, items.size() != 1u) |
- << "More than one blob data are present: " << items.size(); |
- ReturnResultOnUIThread(callback, items[0].path().value()); |
+ << "More than one blob item is present: " << items.size(); |
+ ReturnResultOnUIThread(callback, items[0]->path().value()); |
} |
static void RequestPlaformPathFromFileSystemURL( |