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

Unified Diff: components/offline_pages/background/save_page_request.cc

Issue 2063533002: Rewrite enum in MACRO_STYLE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change enum name to match ios convention Created 4 years, 6 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/background/save_page_request.cc
diff --git a/components/offline_pages/background/save_page_request.cc b/components/offline_pages/background/save_page_request.cc
index 717fc124114d05bb76e8e18e6fdeaf2626b96fb1..fba16e6c100a2458a0aa1ca1948c7d1dc68409bc 100644
--- a/components/offline_pages/background/save_page_request.cc
+++ b/components/offline_pages/background/save_page_request.cc
@@ -44,20 +44,20 @@ SavePageRequest::~SavePageRequest() {}
SavePageRequest::Status SavePageRequest::GetStatus(
const base::Time& now) const {
if (now < activation_time_)
- return Status::kNotReady;
+ return Status::NOT_READY;
// TODO(fgorski): enable check once policy available.
// if (attempt_count_ >= policy.max_attempt_count)
- // return Status::kFailed;
+ // return Status::FAILED;
// TODO(fgorski): enable check once policy available.
// if (activation_time_+ policy.page_expiration_interval < now)
- // return Status::kExpired;
+ // return Status::EXPIRED;
if (creation_time_ < last_attempt_time_)
- return Status::kStarted;
+ return Status::STARTED;
- return Status::kPending;
+ return Status::PENDING;
}
void SavePageRequest::MarkAttemptStarted(const base::Time& start_time) {

Powered by Google App Engine
This is Rietveld 408576698