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

Unified Diff: content/child/webblobregistry_impl.cc

Issue 1853333003: [BlobAsync] Faster shortcuttin, make renderer controller leaky & alive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 8 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
Index: content/child/webblobregistry_impl.cc
diff --git a/content/child/webblobregistry_impl.cc b/content/child/webblobregistry_impl.cc
index 3850ce57c13f4120dc93b980c784e14c7135d755..afc7ae28a7388598a6f9d02d36374e7da460e03b 100644
--- a/content/child/webblobregistry_impl.cc
+++ b/content/child/webblobregistry_impl.cc
@@ -235,22 +235,9 @@ void WebBlobRegistryImpl::BuilderImpl::appendFileSystemURL(
}
void WebBlobRegistryImpl::BuilderImpl::build() {
- sender_->Send(new BlobStorageMsg_RegisterBlobUUID(
- uuid_, content_type_, "", consolidation_->referenced_blobs()));
- io_runner_->PostTask(
- FROM_HERE,
- base::Bind(&WebBlobRegistryImpl::StartBlobAsyncConstruction, uuid_,
- base::Passed(&consolidation_), sender_, main_runner_));
-}
-
-/* static */
-void WebBlobRegistryImpl::StartBlobAsyncConstruction(
- const std::string& uuid,
- std::unique_ptr<BlobConsolidation> consolidation,
- scoped_refptr<ThreadSafeSender> sender,
- scoped_refptr<base::SingleThreadTaskRunner> main_runner) {
- BlobTransportController::GetInstance()->InitiateBlobTransfer(
- uuid, std::move(consolidation), sender.get(), std::move(main_runner));
+ BlobTransportController::InitiateBlobTransfer(
+ uuid_, content_type_, std::move(consolidation_), sender_,
+ io_runner_.get(), main_runner_);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698