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

Unified Diff: content/browser/download/drag_download_file.cc

Issue 9316116: Isolate initiation counts for downloads to their own histograms and improve (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restored curlies to original. Created 8 years, 10 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/download/drag_download_file.cc
diff --git a/content/browser/download/drag_download_file.cc b/content/browser/download/drag_download_file.cc
index cecb9be189225e4982ab684f237322a1fbe8aba9..dd814a785c7e20a79eb88cd21f424e73b1dfa8ac 100644
--- a/content/browser/download/drag_download_file.cc
+++ b/content/browser/download/drag_download_file.cc
@@ -133,6 +133,8 @@ void DragDownloadFile::InitiateDownload() {
save_info.file_path = file_path_;
save_info.file_stream = file_stream_;
+ download_stats::RecordDownloadSource(
+ download_stats::INITIATED_BY_DRAG_N_DROP);
download_manager_->DownloadUrl(url_,
referrer_,
referrer_encoding_,
@@ -140,8 +142,6 @@ void DragDownloadFile::InitiateDownload() {
-1,
save_info,
web_contents_);
- download_stats::RecordDownloadCount(
- download_stats::INITIATED_BY_DRAG_N_DROP_COUNT);
}
void DragDownloadFile::DownloadCompleted(bool is_successful) {

Powered by Google App Engine
This is Rietveld 408576698