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

Unified Diff: content/browser/tab_contents/tab_contents.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: Created 8 years, 11 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/tab_contents/tab_contents.cc
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index 1fc4bfafe34850528a930836d3c77b2f160f64f0..37fb5308ab7cfa8238bed7112b0db1283ea83be9 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -945,8 +945,8 @@ void TabContents::OnSavePage() {
true, // prefer_cache
save_info,
this);
- download_stats::RecordDownloadCount(
- download_stats::INITIATED_BY_SAVE_PACKAGE_FAILURE_COUNT);
+ download_stats::RecordDownloadSource(
+ download_stats::INITIATED_BY_SAVE_PACKAGE_FAILURE);
return;
}
}
@@ -1425,6 +1425,8 @@ void TabContents::OnUpdateZoomLimits(int minimum_percent,
}
void TabContents::OnSaveURL(const GURL& url) {
+ download_stats::RecordDownloadSource(
+ download_stats::INITIATED_BY_RENDERER_SAVE);
cbentzel 2012/02/06 19:57:29 Perhaps INITIATED_BY_PEPPER_SAVE? I guess we don't
Randy Smith (Not in Mondays) 2012/02/07 18:20:18 Yeah; from the browser process perspective the dis
cbentzel 2012/02/07 18:29:32 Right now it's only from Pepper. If you merge/reba
Randy Smith (Not in Mondays) 2012/02/07 19:28:14 Done.
DownloadManager* dlm = GetBrowserContext()->GetDownloadManager();
DownloadSaveInfo save_info;
save_info.prompt_for_save_location = true;

Powered by Google App Engine
This is Rietveld 408576698