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

Unified Diff: components/offline_pages/snapshot_controller.h

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/snapshot_controller.h
diff --git a/components/offline_pages/snapshot_controller.h b/components/offline_pages/snapshot_controller.h
index 00a2edf7ff8a2dd526dccd52feadd780487edaa6..433ef48f9d73f17fd4277605ae4f996c458efdb6 100644
--- a/components/offline_pages/snapshot_controller.h
+++ b/components/offline_pages/snapshot_controller.h
@@ -25,10 +25,11 @@ namespace offline_pages {
// reset so no StartSnapshot calls is made 'cross-session'.
class SnapshotController {
public:
- // kStateReady - listening to input, will start snapshot when needed.
- // kStateSnapshotPending - snapshot is in progress, don't start another.
- // kStateStopped - terminal state, no snapshots until reset.
- enum class State { kReady, kSnapshotPending, kStopped };
+ enum class State {
+ READY, // Listening to input, will start snapshot when needed.
+ SNAPSHOT_PENDING, // Snapshot is in progress, don't start another.
+ STOPPED, // Terminal state, no snapshots until reset.
+ };
// Client of the SnapshotController.
class Client {
« no previous file with comments | « components/offline_pages/background/save_page_request_unittest.cc ('k') | components/offline_pages/snapshot_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698