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

Unified Diff: storage/browser/blob/blob_reader.cc

Issue 2000483004: [BlobReader] Correct IsInMemory = false when async constructing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests, and comment Created 4 years, 7 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
« no previous file with comments | « storage/browser/blob/blob_reader.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/blob/blob_reader.cc
diff --git a/storage/browser/blob/blob_reader.cc b/storage/browser/blob/blob_reader.cc
index 2eafdbcc77e6fcdbc8e4ef1d00248d3f5db4f22e..b342fc907c5edad6efe5060b4f59bb1139351a68 100644
--- a/storage/browser/blob/blob_reader.cc
+++ b/storage/browser/blob/blob_reader.cc
@@ -226,6 +226,9 @@ void BlobReader::Kill() {
}
bool BlobReader::IsInMemory() const {
+ if (blob_handle_ && blob_handle_->IsBeingBuilt()) {
+ return false;
+ }
if (!blob_data_.get()) {
return true;
}
« no previous file with comments | « storage/browser/blob/blob_reader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698