From 8f3a836e23ad632b917ed187d5a74c6b30938f3f Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Tue, 2 Aug 2011 01:33:53 +0000 Subject: Unify infobars' link-opening behavior to respect user-requested dispositions and append the Google locale param (since all these links are opening Google pages). This also fixes an incorrect "&" (should be "&") that I assume is a holdover from the string in question formerly being in generated_resources.grd. Randomly, this also removes some unnecessary .c_str() calls in logging_chrome.cc. BUG=none TEST=Middle-clicking "Learn more" on any applicable infobar should open the link in a new background tab. Review URL: http://codereview.chromium.org/7545021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95025 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/logging_chrome.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/common/logging_chrome.cc') diff --git a/chrome/common/logging_chrome.cc b/chrome/common/logging_chrome.cc index a5f168a..797ffa7 100644 --- a/chrome/common/logging_chrome.cc +++ b/chrome/common/logging_chrome.cc @@ -401,9 +401,9 @@ FilePath GetLogFileName() { scoped_ptr env(base::Environment::Create()); if (env->GetVar(env_vars::kLogFileName, &filename) && !filename.empty()) { #if defined(OS_WIN) - return FilePath(UTF8ToWide(filename).c_str()); + return FilePath(UTF8ToWide(filename)); #elif defined(OS_POSIX) - return FilePath(filename.c_str()); + return FilePath(filename); #endif } -- cgit v1.1