Chromium Code Reviews| 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 7c0a66efc536c8af72882fe7846070da991a8a75..bf8ab2782069b5e713518d2db4c2b7ad018b4794 100644 |
| --- a/content/browser/media/android/media_resource_getter_impl.cc |
| +++ b/content/browser/media/android/media_resource_getter_impl.cc |
| @@ -51,7 +51,12 @@ static void RequestPlatformPathFromBlobURL( |
| ChromeBlobStorageContext::GetFor(browser_context); |
| scoped_ptr<storage::BlobDataHandle> handle = |
| context->context()->GetBlobDataFromPublicURL(url); |
| - const std::vector<storage::BlobData::Item> items = handle->data()->items(); |
| + storage::BlobData* data = handle->data(); |
| + if (!data) { |
| + ReturnResultOnUIThread(callback, ""); |
|
xhwang
2014/09/25 23:11:11
If this shouldn't happen, add a NOTREACHED so that
qinmin
2014/09/26 18:48:49
Done.
|
| + return; |
| + } |
| + const std::vector<storage::BlobData::Item> items = data->items(); |
| // TODO(qinmin): handle the case when the blob data is not a single file. |
| DLOG_IF(WARNING, items.size() != 1u) |