Index: net/tools/tld_cleanup/tld_cleanup.cc |
diff --git a/net/tools/tld_cleanup/tld_cleanup.cc b/net/tools/tld_cleanup/tld_cleanup.cc |
index 485bece3db16d1ef2f1629d687136829b43023dd..ec678fffb71cbce570ed6124d8348ec1ffa514f4 100644 |
--- a/net/tools/tld_cleanup/tld_cleanup.cc |
+++ b/net/tools/tld_cleanup/tld_cleanup.cc |
@@ -47,10 +47,10 @@ int main(int argc, const char* argv[]) { |
// Only use OutputDebugString in debug mode. |
#ifdef NDEBUG |
- logging::LoggingDestination destination = logging::LOG_ONLY_TO_FILE; |
+ logging::LoggingDestination destination = logging::LOG_TO_FILE; |
#else |
logging::LoggingDestination destination = |
- logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG; |
+ logging::LOG_TO_ALL; |
#endif |
CommandLine::Init(argc, argv); |
@@ -58,12 +58,11 @@ int main(int argc, const char* argv[]) { |
base::FilePath log_filename; |
PathService::Get(base::DIR_EXE, &log_filename); |
log_filename = log_filename.AppendASCII("tld_cleanup.log"); |
- logging::InitLogging( |
- log_filename.value().c_str(), |
- destination, |
- logging::LOCK_LOG_FILE, |
- logging::DELETE_OLD_LOG_FILE, |
- logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); |
+ logging::LoggingSettings settings; |
+ settings.logging_dest = destination; |
+ settings.log_file = log_filename.value().c_str(); |
+ settings.delete_old = logging::DELETE_OLD_LOG_FILE; |
+ logging::InitLogging(settings); |
icu_util::Initialize(); |