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

Unified Diff: components/offline_pages/core/downloads/download_notifying_observer.cc

Issue 2867103006: [Offline pages] Rename REMOVED to USER_CANCELED and add better foot note descriptions for histogram… (Closed)
Patch Set: rebase Created 3 years, 7 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: components/offline_pages/core/downloads/download_notifying_observer.cc
diff --git a/components/offline_pages/core/downloads/download_notifying_observer.cc b/components/offline_pages/core/downloads/download_notifying_observer.cc
index 648f7f7f0a285b6dce5ff716693b696e1dde455e..da9ad6c7d52ff3d8af08ce6105b12f81a275d413 100644
--- a/components/offline_pages/core/downloads/download_notifying_observer.cc
+++ b/components/offline_pages/core/downloads/download_notifying_observer.cc
@@ -80,7 +80,8 @@ void DownloadNotifyingObserver::OnCompleted(
return;
if (status == RequestCoordinator::BackgroundSavePageResult::SUCCESS)
notifier_->NotifyDownloadSuccessful(DownloadUIItem(request));
- else if (status == RequestCoordinator::BackgroundSavePageResult::REMOVED)
+ else if (status ==
+ RequestCoordinator::BackgroundSavePageResult::USER_CANCELED)
notifier_->NotifyDownloadCanceled(DownloadUIItem(request));
else
notifier_->NotifyDownloadFailed(DownloadUIItem(request));

Powered by Google App Engine
This is Rietveld 408576698