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

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: git cl owners 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 0c33552ec21278b130f75b9c2e363c5c14157344..85575a9b4d3bcfb9c4bbeb25d41e286f36b8f6ea 100644
--- a/content/child/webblobregistry_impl.cc
+++ b/content/child/webblobregistry_impl.cc
@@ -238,20 +238,8 @@ 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,
- scoped_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_, std::move(consolidation_), sender_, io_runner_, main_runner_);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698