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

Unified Diff: chrome/browser/extensions/extension_downloads_api.cc

Issue 7847027: DownloadId (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merge Created 9 years, 3 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
« no previous file with comments | « chrome/browser/extensions/extension_downloads_api.h ('k') | chrome/browser/history/download_database.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_downloads_api.cc
diff --git a/chrome/browser/extensions/extension_downloads_api.cc b/chrome/browser/extensions/extension_downloads_api.cc
index 11dbec40f9cacca42dae4130672120da14aef460..2182b000fdcf62ef0ff1d153824ef259c545a0f2 100644
--- a/chrome/browser/extensions/extension_downloads_api.cc
+++ b/chrome/browser/extensions/extension_downloads_api.cc
@@ -201,11 +201,12 @@ void DownloadsDownloadFunction::BeginDownloadOnIOThread() {
iodata_.reset();
}
-void DownloadsDownloadFunction::OnStarted(int dl_id, net::Error error) {
+void DownloadsDownloadFunction::OnStarted(DownloadId dl_id, net::Error error) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
VLOG(1) << __FUNCTION__ << " " << dl_id << " " << error;
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, NewRunnableMethod(
- this, &DownloadsDownloadFunction::RespondOnUIThread, dl_id, error));
+ this, &DownloadsDownloadFunction::RespondOnUIThread,
+ dl_id.local(), error));
}
void DownloadsDownloadFunction::RespondOnUIThread(int dl_id, net::Error error) {
« no previous file with comments | « chrome/browser/extensions/extension_downloads_api.h ('k') | chrome/browser/history/download_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698