summaryrefslogtreecommitdiffstats
path: root/chrome/test/reliability
diff options
context:
space:
mode:
authorojan@chromium.org <ojan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-03 08:58:48 +0000
committerojan@chromium.org <ojan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-03 08:58:48 +0000
commit5775257334a0fc605d27312556ad3123d5909865 (patch)
tree042d664d85ff50ca5d5bf104efad38115e3e4ec3 /chrome/test/reliability
parent3b00779a8511730abc3935e0f971b7cbdcbc0408 (diff)
downloadchromium_src-5775257334a0fc605d27312556ad3123d5909865.zip
chromium_src-5775257334a0fc605d27312556ad3123d5909865.tar.gz
chromium_src-5775257334a0fc605d27312556ad3123d5909865.tar.bz2
Removes the following deprecated functions:
file_util::InsertBeforeExtension(wstring*, wstring&) file_util::PathComponents(wstring&, vector<wstring>*) file_util::ReplaceExtension(wstring*, wstring&) BUG=none TEST=manual test for importing IE bookmarks with some sub-directories. Original patch by tkent@google.com. See http://codereview.chromium.org/118109 r=ojan,estade git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17469 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/reliability')
-rw-r--r--chrome/test/reliability/page_load_test.cc17
1 files changed, 8 insertions, 9 deletions
diff --git a/chrome/test/reliability/page_load_test.cc b/chrome/test/reliability/page_load_test.cc
index 774b7f0..4a7b951 100644
--- a/chrome/test/reliability/page_load_test.cc
+++ b/chrome/test/reliability/page_load_test.cc
@@ -439,22 +439,21 @@ class PageLoadTest : public UITest {
}
}
- std::wstring ConstructSavedDebugLogPath(const std::wstring& debug_log_path,
- int index) {
- std::wstring saved_debug_log_path(debug_log_path);
+ FilePath ConstructSavedDebugLogPath(const FilePath& debug_log_path,
+ int index) {
std::wstring suffix(L"_");
suffix.append(IntToWString(index));
- file_util::InsertBeforeExtension(&saved_debug_log_path, suffix);
- return saved_debug_log_path;
+ return debug_log_path.InsertBeforeExtension(suffix);
}
void SaveDebugLog(const std::wstring& log_path, const std::wstring& log_id,
std::ofstream& log_file, int index) {
if (!log_path.empty()) {
- std::wstring saved_log_path =
- ConstructSavedDebugLogPath(log_path, index);
- if (file_util::Move(log_path, saved_log_path)) {
- log_file << " " << log_id << "=" << saved_log_path;
+ FilePath log_file_path(log_path);
+ FilePath saved_log_file_path =
+ ConstructSavedDebugLogPath(log_file_path, index);
+ if (file_util::Move(log_file_path, saved_log_file_path)) {
+ log_file << " " << log_id << "=" << saved_log_file_path.value();
}
}
}