summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_history.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/download/download_history.cc')
-rw-r--r--chrome/browser/download/download_history.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/download/download_history.cc b/chrome/browser/download/download_history.cc
index b38ddbf..7f26bb5 100644
--- a/chrome/browser/download/download_history.cc
+++ b/chrome/browser/download/download_history.cc
@@ -176,14 +176,13 @@ bool DownloadHistory::IsPersisted(content::DownloadItem* item) {
return data && data->is_persisted();
}
-DownloadHistory::DownloadHistory(
- content::DownloadManager* manager,
- scoped_ptr<HistoryAdapter> history)
- : ALLOW_THIS_IN_INITIALIZER_LIST(notifier_(manager, this)),
+DownloadHistory::DownloadHistory(content::DownloadManager* manager,
+ scoped_ptr<HistoryAdapter> history)
+ : notifier_(manager, this),
history_(history.Pass()),
loading_db_handle_(history::DownloadDatabase::kUninitializedHandle),
history_size_(0),
- ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {
+ weak_ptr_factory_(this) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
content::DownloadManager::DownloadVector items;
notifier_.GetManager()->GetAllDownloads(&items);