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

Unified Diff: content/browser/renderer_host/buffered_resource_handler.cc

Issue 8401001: Fix history importing by delaying DownloadManager creation. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: comments Created 9 years, 2 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/browser/renderer_host/buffered_resource_handler.cc
diff --git a/content/browser/renderer_host/buffered_resource_handler.cc b/content/browser/renderer_host/buffered_resource_handler.cc
index 590f9b32a1b66f0c057dc9668362fe0b1c626fc4..ca9c9d00336b672a7e24c4493bd6c85c6fa89334 100644
--- a/content/browser/renderer_host/buffered_resource_handler.cc
+++ b/content/browser/renderer_host/buffered_resource_handler.cc
@@ -11,6 +11,7 @@
#include "base/metrics/histogram.h"
#include "base/string_util.h"
#include "content/browser/browser_thread.h"
+#include "content/browser/download/download_id_factory.h"
#include "content/browser/download/download_resource_handler.h"
#include "content/browser/plugin_service.h"
#include "content/browser/renderer_host/resource_dispatcher_host.h"
@@ -317,7 +318,7 @@ bool BufferedResourceHandler::CompleteResponseStarted(int request_id,
info->set_is_download(true);
- DownloadId dl_id = info->context()->next_download_id_thunk().Run();
+ DownloadId dl_id = info->context()->download_id_factory()->GetNextId();
scoped_refptr<ResourceHandler> handler(
new DownloadResourceHandler(host_,

Powered by Google App Engine
This is Rietveld 408576698