summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/test_with_web_server.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-27 10:43:00 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-27 10:43:00 +0000
commitbcd840cdc6c8f30782048cebafee9cc5f4a96883 (patch)
tree77b1b5d109ec6938b76b8c029e1a27f04426a4f9 /chrome_frame/test/test_with_web_server.cc
parent98efd9a924ec054f953c0798b9208c887c47646d (diff)
downloadchromium_src-bcd840cdc6c8f30782048cebafee9cc5f4a96883.zip
chromium_src-bcd840cdc6c8f30782048cebafee9cc5f4a96883.tar.gz
chromium_src-bcd840cdc6c8f30782048cebafee9cc5f4a96883.tar.bz2
chrome_frame: Remove several instances of the deprecated wstrings functions
and use their FilePath equivalents. BUG=24874 TEST=included Review URL: http://codereview.chromium.org/2125021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48376 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test/test_with_web_server.cc')
-rw-r--r--chrome_frame/test/test_with_web_server.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/chrome_frame/test/test_with_web_server.cc b/chrome_frame/test/test_with_web_server.cc
index 2c95f13..5893716 100644
--- a/chrome_frame/test/test_with_web_server.cc
+++ b/chrome_frame/test/test_with_web_server.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome_frame/test/test_with_web_server.h"
@@ -39,8 +39,9 @@ void ChromeFrameTestWithWebServer::CloseAllBrowsers() {
base::KillProcesses(chrome_frame_test::kSafariImageName, 0, NULL);
// Endeavour to only kill off Chrome Frame derived Chrome processes.
- KillAllNamedProcessesWithArgument(chrome_frame_test::kChromeImageName,
- UTF8ToWide(switches::kChromeFrame));
+ KillAllNamedProcessesWithArgument(
+ UTF8ToWide(chrome_frame_test::kChromeImageName),
+ UTF8ToWide(switches::kChromeFrame));
base::KillProcesses(chrome_frame_test::kChromeLauncher, 0, NULL);
}
@@ -198,10 +199,10 @@ void ChromeFrameTestWithWebServer::OptionalBrowserTest(BrowserKind browser,
void ChromeFrameTestWithWebServer::VersionTest(BrowserKind browser,
const wchar_t* page, const wchar_t* result_file_to_check) {
- std::wstring plugin_path;
+ FilePath plugin_path;
PathService::Get(base::DIR_MODULE, &plugin_path);
- file_util::AppendToPath(&plugin_path, L"servers");
- file_util::AppendToPath(&plugin_path, kChromeFrameDllName);
+ plugin_path = plugin_path.AppendASCII("servers");
+ plugin_path = plugin_path.Append(kChromeFrameDllName);
static FileVersionInfo* version_info =
FileVersionInfo::CreateFileVersionInfo(plugin_path);