| 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 7f3e02cd795904a3d9b4001d808b15701969db68..2f8e22e4c7cd324a6975167d6d5a8f6d95fc3ab4 100644
|
| --- a/content/browser/tab_contents/tab_contents.cc
|
| +++ b/content/browser/tab_contents/tab_contents.cc
|
| @@ -1101,9 +1101,9 @@ bool TabContents::IsSavable() {
|
| void TabContents::OnSavePage() {
|
| // If we can not save the page, try to download it.
|
| if (!IsSavable()) {
|
| + download_stats::RecordDownloadSource(
|
| + download_stats::INITIATED_BY_SAVE_PACKAGE_ON_NON_HTML);
|
| SaveURL(GetURL(), GURL(), true);
|
| - download_stats::RecordDownloadCount(
|
| - download_stats::INITIATED_BY_SAVE_PACKAGE_FAILURE_COUNT);
|
| return;
|
| }
|
|
|
| @@ -1581,6 +1581,8 @@ void TabContents::OnUpdateZoomLimits(int minimum_percent,
|
| }
|
|
|
| void TabContents::OnSaveURL(const GURL& url) {
|
| + download_stats::RecordDownloadSource(
|
| + download_stats::INITIATED_BY_PEPPER_SAVE);
|
| // Check if the URL to save matches the URL of the main frame. Since this
|
| // message originates from Pepper plugins, it may not be the case if the
|
| // plugin is an embedded element.
|
|
|