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

Unified Diff: ash/display/display_info.cc

Issue 731373002: Enable MSVC warning for unused locals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another Windows fix Created 6 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 | ash/root_window_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_info.cc
diff --git a/ash/display/display_info.cc b/ash/display/display_info.cc
index 502cbd2fb4e0242173a90454e9af664f39055778..da10e97cd83ed4bb2ba10a5d0e40801b489a4b04 100644
--- a/ash/display/display_info.cc
+++ b/ash/display/display_info.cc
@@ -95,18 +95,17 @@ void DisplayInfo::SetUse125DSFForUIScaling(bool enable) {
// static
DisplayInfo DisplayInfo::CreateFromSpecWithID(const std::string& spec,
int64 id) {
- // Default bounds for a display.
- const int kDefaultHostWindowX = 200;
- const int kDefaultHostWindowY = 200;
- const int kDefaultHostWindowWidth = 1366;
- const int kDefaultHostWindowHeight = 768;
-
// Use larger than max int to catch overflow early.
static int64 synthesized_display_id = 2200000000LL;
#if defined(OS_WIN)
gfx::Rect bounds_in_native(aura::WindowTreeHost::GetNativeScreenSize());
#else
+ // Default bounds for a display.
+ const int kDefaultHostWindowX = 200;
+ const int kDefaultHostWindowY = 200;
+ const int kDefaultHostWindowWidth = 1366;
+ const int kDefaultHostWindowHeight = 768;
gfx::Rect bounds_in_native(kDefaultHostWindowX, kDefaultHostWindowY,
kDefaultHostWindowWidth, kDefaultHostWindowHeight);
#endif
« no previous file with comments | « no previous file | ash/root_window_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698