Index: chrome/browser/profiles/profile_io_data.cc |
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc |
index 59dd64b6fe071e292dd8dd06d23515497b1eed75..2562d21efcd03b3a6e477f58022b186352f2446a 100644 |
--- a/chrome/browser/profiles/profile_io_data.cc |
+++ b/chrome/browser/profiles/profile_io_data.cc |
@@ -55,9 +55,9 @@ |
#include "net/url_request/url_request.h" |
#include "webkit/blob/blob_data.h" |
#include "webkit/blob/blob_url_request_job_factory.h" |
+#include "webkit/database/database_tracker.h" |
#include "webkit/fileapi/file_system_context.h" |
#include "webkit/fileapi/file_system_url_request_job_factory.h" |
-#include "webkit/database/database_tracker.h" |
#include "webkit/quota/quota_manager.h" |
#if defined(OS_CHROMEOS) |
@@ -193,6 +193,8 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
PrefService* pref_service = profile->GetPrefs(); |
+ next_download_id_thunk_ = profile->GetDownloadManager()->GetNextIdThunk(); |
+ |
scoped_ptr<ProfileParams> params(new ProfileParams); |
params->is_incognito = profile->IsOffTheRecord(); |
params->clear_local_state_on_exit = |
@@ -497,6 +499,7 @@ void ProfileIOData::LazyInitialize() const { |
resource_context_.SetUserData(NULL, const_cast<ProfileIOData*>(this)); |
resource_context_.set_media_observer( |
io_thread_globals->media.media_internals.get()); |
+ resource_context_.set_next_download_id_thunk(next_download_id_thunk_); |
LazyInitializeInternal(profile_params_.get()); |