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

Unified Diff: chrome/browser/chromeos/arc/arc_auth_service.cc

Issue 2495273002: Get rid of "default:" clause. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_auth_service.cc
diff --git a/chrome/browser/chromeos/arc/arc_auth_service.cc b/chrome/browser/chromeos/arc/arc_auth_service.cc
index a342fc0878629bbb990c39a4211cd71a78bb7bc8..dcfe9a697afdb9e21871de35c34f38b1a1f8e417 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service.cc
+++ b/chrome/browser/chromeos/arc/arc_auth_service.cc
@@ -1146,10 +1146,12 @@ std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state) {
return os << "FETCHING_CODE";
case ArcAuthService::State::ACTIVE:
return os << "ACTIVE";
- default:
- NOTREACHED();
- return os;
}
+
+ // Some compiler reports an error even if all values of an enum-class are
+ // covered indivisually in a switch statement.
+ NOTREACHED();
+ return os;
}
} // namespace arc
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698