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

Unified Diff: cc/resources/tile_priority.cc

Issue 22875045: cc: Remove unnecessary "default" cases from switch statements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove changes to enums that require arraysize Created 7 years, 4 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: cc/resources/tile_priority.cc
diff --git a/cc/resources/tile_priority.cc b/cc/resources/tile_priority.cc
index 970ea1d81a5bb8631281eeef2d9804213b5ae8db..eeb87cdcbbc63d1ae89a74a9538961aac6eb74a1 100644
--- a/cc/resources/tile_priority.cc
+++ b/cc/resources/tile_priority.cc
@@ -87,11 +87,10 @@ scoped_ptr<base::Value> TileResolutionAsValue(
case NON_IDEAL_RESOLUTION:
return scoped_ptr<base::Value>(base::Value::CreateStringValue(
"NON_IDEAL_RESOLUTION"));
- default:
- DCHECK(false) << "Unrecognized TileResolution value " << resolution;
- return scoped_ptr<base::Value>(base::Value::CreateStringValue(
- "<unknown TileResolution value>"));
}
+ DCHECK(false) << "Unrecognized TileResolution value " << resolution;
+ return scoped_ptr<base::Value>(base::Value::CreateStringValue(
+ "<unknown TileResolution value>"));
}
scoped_ptr<base::Value> TilePriority::AsValue() const {
@@ -176,11 +175,10 @@ scoped_ptr<base::Value> TreePriorityAsValue(TreePriority prio) {
case NEW_CONTENT_TAKES_PRIORITY:
return scoped_ptr<base::Value>(base::Value::CreateStringValue(
"NEW_CONTENT_TAKES_PRIORITY"));
- default:
- DCHECK(false) << "Unrecognized priority value " << prio;
- return scoped_ptr<base::Value>(base::Value::CreateStringValue(
- "<unknown>"));
}
+ DCHECK(false) << "Unrecognized priority value " << prio;
+ return scoped_ptr<base::Value>(base::Value::CreateStringValue(
+ "<unknown>"));
}
scoped_ptr<base::Value> GlobalStateThatImpactsTilePriority::AsValue() const {

Powered by Google App Engine
This is Rietveld 408576698