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

Unified Diff: content/browser/service_worker/service_worker_browsertest.cc

Issue 2681073003: Clear BlobReader in SW browser_tests on the right thread (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_browsertest.cc
diff --git a/content/browser/service_worker/service_worker_browsertest.cc b/content/browser/service_worker/service_worker_browsertest.cc
index 61900c11e4cf074fda27f3026b3e8eb277163b2c..0fe04b43334a8a6daaccf5a0c77e196524d10aa6 100644
--- a/content/browser/service_worker/service_worker_browsertest.cc
+++ b/content/browser/service_worker/service_worker_browsertest.cc
@@ -2581,6 +2581,7 @@ class CacheStorageSideDataSizeChecker
int size_result) {
ASSERT_EQ(net::OK, size_result);
if (!blob_reader_->has_side_data()) {
+ blob_reader_ = nullptr;
continuation.Run();
return;
}
@@ -2599,6 +2600,7 @@ class CacheStorageSideDataSizeChecker
storage::BlobReader::Status status) {
ASSERT_NE(storage::BlobReader::Status::NET_ERROR, status);
*result = blob_reader_->side_data()->size();
+ blob_reader_ = nullptr;
continuation.Run();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698