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

Unified Diff: ui/gfx/display.cc

Issue 242423002: Fix Display::SetRotationAsDegree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@android_display_info_rotation
Patch Set: Created 6 years, 8 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
« 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: ui/gfx/display.cc
diff --git a/ui/gfx/display.cc b/ui/gfx/display.cc
index a22a4138bd75fbc1d087723d36c4cc6c5a4eddba..069c79eccc09bda1806eb2fed91bc26f95e3445c 100644
--- a/ui/gfx/display.cc
+++ b/ui/gfx/display.cc
@@ -115,10 +115,10 @@ void Display::SetRotationAsDegree(int rotation) {
case 270:
rotation_ = ROTATE_270;
break;
+ default:
+ // We should not reach that but we will just ignore the call if we do.
+ NOTREACHED();
}
-
- // We should not reach that but we will just ignore the call if we do.
- NOTREACHED();
}
Insets Display::GetWorkAreaInsets() const {
« 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