| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <atlbase.h> | 5 #include <atlbase.h> |
| 6 #include <security.h> | 6 #include <security.h> |
| 7 | 7 |
| 8 #include <iomanip> | 8 #include <iomanip> |
| 9 #include <iostream> | 9 #include <iostream> |
| 10 | 10 |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 | 394 |
| 395 BOOL CloudPrintServiceModule::ConsoleCtrlHandler(DWORD type) { | 395 BOOL CloudPrintServiceModule::ConsoleCtrlHandler(DWORD type) { |
| 396 PostThreadMessage(_AtlModule.m_dwThreadID, WM_QUIT, 0, 0); | 396 PostThreadMessage(_AtlModule.m_dwThreadID, WM_QUIT, 0, 0); |
| 397 return TRUE; | 397 return TRUE; |
| 398 } | 398 } |
| 399 | 399 |
| 400 int main(int argc, char** argv) { | 400 int main(int argc, char** argv) { |
| 401 CommandLine::Init(argc, argv); | 401 CommandLine::Init(argc, argv); |
| 402 base::AtExitManager at_exit; | 402 base::AtExitManager at_exit; |
| 403 | 403 |
| 404 logging::InitLogging(NULL, | 404 logging::LoggingSettings settings; |
| 405 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, | 405 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; |
| 406 logging::LOCK_LOG_FILE, | 406 logging::InitLogging(settings); |
| 407 logging::APPEND_TO_OLD_LOG_FILE, | |
| 408 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); | |
| 409 | 407 |
| 410 logging::SetMinLogLevel( | 408 logging::SetMinLogLevel( |
| 411 CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableLogging) ? | 409 CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableLogging) ? |
| 412 logging::LOG_INFO : logging::LOG_FATAL); | 410 logging::LOG_INFO : logging::LOG_FATAL); |
| 413 | 411 |
| 414 return _AtlModule.WinMain(0); | 412 return _AtlModule.WinMain(0); |
| 415 } | 413 } |
| 416 | 414 |
| OLD | NEW |