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

Side by Side Diff: chrome/browser/sync/tools/sync_listen_notifications.cc

Issue 6070006: Made logging not look up --enable-dcheck from command line (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed more compile failures Created 9 years, 11 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 | « ceee/installer_dll/installer_helper.cc ('k') | chrome/common/logging_chrome.cc » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // WriteState()). 215 // WriteState()).
216 std::string server_notifier_state_; 216 std::string server_notifier_state_;
217 sync_notifier::ChromeInvalidationClient chrome_invalidation_client_; 217 sync_notifier::ChromeInvalidationClient chrome_invalidation_client_;
218 }; 218 };
219 219
220 } // namespace 220 } // namespace
221 221
222 int main(int argc, char* argv[]) { 222 int main(int argc, char* argv[]) {
223 base::AtExitManager exit_manager; 223 base::AtExitManager exit_manager;
224 CommandLine::Init(argc, argv); 224 CommandLine::Init(argc, argv);
225 logging::InitLogging(NULL, logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, 225 logging::InitLogging(
226 logging::LOCK_LOG_FILE, logging::DELETE_OLD_LOG_FILE); 226 NULL,
227 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG,
228 logging::LOCK_LOG_FILE,
229 logging::DELETE_OLD_LOG_FILE,
230 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
227 logging::SetMinLogLevel(logging::LOG_INFO); 231 logging::SetMinLogLevel(logging::LOG_INFO);
228 // TODO(akalin): Make sure that all log messages are printed to the 232 // TODO(akalin): Make sure that all log messages are printed to the
229 // console, even on Windows (SetMinLogLevel isn't enough). 233 // console, even on Windows (SetMinLogLevel isn't enough).
230 talk_base::LogMessage::LogToDebug(talk_base::LS_VERBOSE); 234 talk_base::LogMessage::LogToDebug(talk_base::LS_VERBOSE);
231 235
232 // Parse command line. 236 // Parse command line.
233 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 237 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
234 std::string email = command_line.GetSwitchValueASCII("email"); 238 std::string email = command_line.GetSwitchValueASCII("email");
235 if (email.empty()) { 239 if (email.empty()) {
236 printf("Usage: %s --email=foo@bar.com [--password=mypassword] " 240 printf("Usage: %s --email=foo@bar.com [--password=mypassword] "
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 observers.push_back(&legacy_notifier_delegate); 315 observers.push_back(&legacy_notifier_delegate);
312 } else { 316 } else {
313 observers.push_back(&server_notifier_delegate); 317 observers.push_back(&server_notifier_delegate);
314 } 318 }
315 XmppNotificationClient xmpp_notification_client( 319 XmppNotificationClient xmpp_notification_client(
316 observers.begin(), observers.end()); 320 observers.begin(), observers.end());
317 xmpp_notification_client.Run(xmpp_client_settings, &cert_verifier); 321 xmpp_notification_client.Run(xmpp_client_settings, &cert_verifier);
318 322
319 return 0; 323 return 0;
320 } 324 }
OLDNEW
« no previous file with comments | « ceee/installer_dll/installer_helper.cc ('k') | chrome/common/logging_chrome.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698