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

Side by Side Diff: cloud_print/gcp20/prototype/gcp20_device.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <stdio.h> 5 #include <stdio.h>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/threading/platform_thread.h" 9 #include "base/threading/platform_thread.h"
10 #include "cloud_print/gcp20/prototype/dns_sd_server.h" 10 #include "cloud_print/gcp20/prototype/dns_sd_server.h"
11 11
12 int main(int argc, char* argv[]) { 12 int main(int argc, char* argv[]) {
13 CommandLine::Init(argc, argv); 13 CommandLine::Init(argc, argv);
14 14
15 logging::InitLogging(NULL, 15 logging::LoggingSettings settings;
16 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, 16 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;
17 logging::LOCK_LOG_FILE, 17 logging::InitLogging(settings);
18 logging::APPEND_TO_OLD_LOG_FILE,
19 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
20 18
21 DnsSdServer dns_sd_server; 19 DnsSdServer dns_sd_server;
22 dns_sd_server.Start(); 20 dns_sd_server.Start();
23 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(2)); 21 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(2));
24 dns_sd_server.Shutdown(); 22 dns_sd_server.Shutdown();
25 23
26 return 0; 24 return 0;
27 } 25 }
28 26
OLDNEW
« no previous file with comments | « chrome_frame/test/net/fake_external_tab.cc ('k') | cloud_print/service/win/cloud_print_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698