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

Side by Side Diff: monitor_reconfigure_main.cc

Issue 3293011: monitor_reconfig: Call logging::InitLogging(). (Closed) Base URL: http://git.chromium.org/git/monitor_reconfig.git
Patch Set: Created 10 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« 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 (c) 2009 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium OS 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 "monitor_reconfig/monitor_reconfigure_main.h" 5 #include "monitor_reconfig/monitor_reconfigure_main.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstdio> 8 #include <cstdio>
9 #include <cstdlib> 9 #include <cstdlib>
10 10
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 &external_resolution, 160 &external_resolution,
161 &screen_resolution)); 161 &screen_resolution));
162 SetDeviceResolution(lcd_output_->name, lcd_resolution); 162 SetDeviceResolution(lcd_output_->name, lcd_resolution);
163 SetDeviceResolution(external_output_->name, external_resolution); 163 SetDeviceResolution(external_output_->name, external_resolution);
164 SetScreenResolution(screen_resolution); 164 SetScreenResolution(screen_resolution);
165 } 165 }
166 166
167 } // end namespace monitor_reconfig 167 } // end namespace monitor_reconfig
168 168
169 int main(int argc, char** argv) { 169 int main(int argc, char** argv) {
170 logging::InitLogging(NULL,
171 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG,
172 logging::DONT_LOCK_LOG_FILE,
173 logging::APPEND_TO_OLD_LOG_FILE);
170 Display* display = XOpenDisplay(NULL); 174 Display* display = XOpenDisplay(NULL);
171 CHECK(display) << "Could not open display"; 175 CHECK(display) << "Could not open display";
172 176
173 Window window = RootWindow(display, DefaultScreen(display)); 177 Window window = RootWindow(display, DefaultScreen(display));
174 XRRScreenResources* screen_info = XRRGetScreenResources(display, window); 178 XRRScreenResources* screen_info = XRRGetScreenResources(display, window);
175 monitor_reconfig::MonitorReconfigureMain main_app(display, screen_info); 179 monitor_reconfig::MonitorReconfigureMain main_app(display, screen_info);
176 180
177 main_app.Run(); 181 main_app.Run();
178 return 0; 182 return 0;
179 } 183 }
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