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

Side by Side Diff: cloud_print/service/win/cloud_print_service.cc

Issue 16519003: Define a LoggingSettings struct to use for InitLogging() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error Created 7 years, 6 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cloud_print/gcp20/prototype/gcp20_device.cc ('k') | content/app/android/library_loader_hooks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698