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

Side by Side Diff: chrome/common/logging_chrome.cc

Issue 7545021: Unify infobars' link-opening behavior to respect user-requested dispositions and append the Googl... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 | « chrome/browser/tab_contents/insecure_content_infobar_delegate.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 // Need to include this before most other files because it defines 7 // Need to include this before most other files because it defines
8 // IPC_MESSAGE_LOG_ENABLED. We need to use it to define 8 // IPC_MESSAGE_LOG_ENABLED. We need to use it to define
9 // IPC_MESSAGE_MACROS_LOG_ENABLED so render_messages.h will generate the 9 // IPC_MESSAGE_MACROS_LOG_ENABLED so render_messages.h will generate the
10 // ViewMsgLog et al. functions. 10 // ViewMsgLog et al. functions.
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 394
395 chrome_logging_initialized_ = false; 395 chrome_logging_initialized_ = false;
396 chrome_logging_redirected_ = false; 396 chrome_logging_redirected_ = false;
397 } 397 }
398 398
399 FilePath GetLogFileName() { 399 FilePath GetLogFileName() {
400 std::string filename; 400 std::string filename;
401 scoped_ptr<base::Environment> env(base::Environment::Create()); 401 scoped_ptr<base::Environment> env(base::Environment::Create());
402 if (env->GetVar(env_vars::kLogFileName, &filename) && !filename.empty()) { 402 if (env->GetVar(env_vars::kLogFileName, &filename) && !filename.empty()) {
403 #if defined(OS_WIN) 403 #if defined(OS_WIN)
404 return FilePath(UTF8ToWide(filename).c_str()); 404 return FilePath(UTF8ToWide(filename));
405 #elif defined(OS_POSIX) 405 #elif defined(OS_POSIX)
406 return FilePath(filename.c_str()); 406 return FilePath(filename);
407 #endif 407 #endif
408 } 408 }
409 409
410 const FilePath log_filename(FILE_PATH_LITERAL("chrome_debug.log")); 410 const FilePath log_filename(FILE_PATH_LITERAL("chrome_debug.log"));
411 FilePath log_path; 411 FilePath log_path;
412 412
413 if (PathService::Get(chrome::DIR_LOGS, &log_path)) { 413 if (PathService::Get(chrome::DIR_LOGS, &log_path)) {
414 log_path = log_path.Append(log_filename); 414 log_path = log_path.Append(log_filename);
415 return log_path; 415 return log_path;
416 } else { 416 } else {
(...skipping 28 matching lines...) Expand all
445 assertions->push_back(wide_line); 445 assertions->push_back(wide_line);
446 ++assertion_count; 446 ++assertion_count;
447 } 447 }
448 } 448 }
449 log_file.close(); 449 log_file.close();
450 450
451 return assertion_count; 451 return assertion_count;
452 } 452 }
453 453
454 } // namespace logging 454 } // namespace logging
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/insecure_content_infobar_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698