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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/arc/arc_auth_service.h" 5 #include "chrome/browser/chromeos/arc/arc_auth_service.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/common/shelf/shelf_delegate.h" 9 #include "ash/common/shelf/shelf_delegate.h"
10 #include "ash/common/wm_shell.h" 10 #include "ash/common/wm_shell.h"
(...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state) { 1139 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state) {
1140 switch (state) { 1140 switch (state) {
1141 case ArcAuthService::State::NOT_INITIALIZED: 1141 case ArcAuthService::State::NOT_INITIALIZED:
1142 return os << "NOT_INITIALIZED"; 1142 return os << "NOT_INITIALIZED";
1143 case ArcAuthService::State::STOPPED: 1143 case ArcAuthService::State::STOPPED:
1144 return os << "STOPPED"; 1144 return os << "STOPPED";
1145 case ArcAuthService::State::FETCHING_CODE: 1145 case ArcAuthService::State::FETCHING_CODE:
1146 return os << "FETCHING_CODE"; 1146 return os << "FETCHING_CODE";
1147 case ArcAuthService::State::ACTIVE: 1147 case ArcAuthService::State::ACTIVE:
1148 return os << "ACTIVE"; 1148 return os << "ACTIVE";
1149 default:
1150 NOTREACHED();
1151 return os;
1152 } 1149 }
1150
1151 // Some compiler reports an error even if all values of an enum-class are
1152 // covered indivisually in a switch statement.
1153 NOTREACHED();
1154 return os;
1153 } 1155 }
1154 1156
1155 } // namespace arc 1157 } // namespace arc
OLDNEW
« 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