diff options
author | dmurph <dmurph@chromium.org> | 2015-04-14 17:43:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-15 00:44:21 +0000 |
commit | 5bc9d625316a5e46d887af29e2259faf8c170439 (patch) | |
tree | 9492a46a5eb9a62c1306c7542ff09b190a1cd265 /storage/browser | |
parent | d573bf968e8bdb6b602cbce62148192d69586b7f (diff) | |
download | chromium_src-5bc9d625316a5e46d887af29e2259faf8c170439.zip chromium_src-5bc9d625316a5e46d887af29e2259faf8c170439.tar.gz chromium_src-5bc9d625316a5e46d887af29e2259faf8c170439.tar.bz2 |
[Storage] Fixed tracing on broken blobs
R=michaeln
BUG=477123
Review URL: https://codereview.chromium.org/1089433002
Cr-Commit-Position: refs/heads/master@{#325160}
Diffstat (limited to 'storage/browser')
-rw-r--r-- | storage/browser/blob/blob_url_request_job.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/browser/blob/blob_url_request_job.cc b/storage/browser/blob/blob_url_request_job.cc index 69b4776..d94fa0b 100644 --- a/storage/browser/blob/blob_url_request_job.cc +++ b/storage/browser/blob/blob_url_request_job.cc @@ -71,7 +71,7 @@ BlobURLRequestJob::BlobURLRequestJob( byte_range_set_(false), weak_factory_(this) { TRACE_EVENT_ASYNC_BEGIN1("Blob", "BlobRequest", this, "uuid", - blob_data_->uuid()); + blob_data_ ? blob_data_->uuid() : "NotFound"); DCHECK(file_thread_proxy_.get()); } @@ -160,7 +160,8 @@ void BlobURLRequestJob::SetExtraRequestHeaders( BlobURLRequestJob::~BlobURLRequestJob() { STLDeleteValues(&index_to_reader_); - TRACE_EVENT_ASYNC_END1("Blob", "Request", this, "uuid", blob_data_->uuid()); + TRACE_EVENT_ASYNC_END1("Blob", "Request", this, "uuid", + blob_data_ ? blob_data_->uuid() : "NotFound"); } void BlobURLRequestJob::DidStart() { |