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

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

Issue 2303953002: Rename an Enum to a slightly better name. (Closed)
Patch Set: Merged. Created 4 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
Index: components/offline_pages/downloads/download_notifying_observer.cc
diff --git a/components/offline_pages/downloads/download_notifying_observer.cc b/components/offline_pages/downloads/download_notifying_observer.cc
index 483303627a5a323a37e2bdb06e1e284936f5a146..c399065e168e98125965a3500f8a24c55c14bb54 100644
--- a/components/offline_pages/downloads/download_notifying_observer.cc
+++ b/components/offline_pages/downloads/download_notifying_observer.cc
@@ -60,13 +60,13 @@ void DownloadNotifyingObserver::OnChanged(const SavePageRequest& request) {
void DownloadNotifyingObserver::OnCompleted(
const SavePageRequest& request,
- RequestCoordinator::SavePageStatus status) {
+ RequestCoordinator::BackgroundSavePageResult status) {
DCHECK(notifier_.get());
if (!DownloadUIAdapter::IsVisibleInUI(request.client_id()))
return;
- if (status == RequestCoordinator::SavePageStatus::SUCCESS)
+ if (status == RequestCoordinator::BackgroundSavePageResult::SUCCESS)
notifier_->NotifyDownloadSuccessful(DownloadUIItem(request));
- else if (status == RequestCoordinator::SavePageStatus::REMOVED)
+ else if (status == RequestCoordinator::BackgroundSavePageResult::REMOVED)
notifier_->NotifyDownloadCanceled(DownloadUIItem(request));
else
notifier_->NotifyDownloadFailed(DownloadUIItem(request));

Powered by Google App Engine
This is Rietveld 408576698