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

Unified Diff: chrome/browser/session_restore_uitest.cc

Issue 12893: Get rid of kPathSeparator on windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/session_history_uitest.cc ('k') | chrome/browser/ssl_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/session_restore_uitest.cc
===================================================================
--- chrome/browser/session_restore_uitest.cc (revision 6271)
+++ chrome/browser/session_restore_uitest.cc (working copy)
@@ -21,13 +21,16 @@
class SessionRestoreUITest : public UITest {
protected:
SessionRestoreUITest() : UITest() {
- std::wstring path_prefix = test_data_directory_;
- file_util::AppendToPath(&path_prefix, L"session_history");
- path_prefix += file_util::kPathSeparator;
+ FilePath path_prefix = FilePath::FromWStringHack(test_data_directory_);
+ path_prefix = path_prefix.Append(FILE_PATH_LITERAL("session_history"))
+ .Append(FilePath::StringType(&FilePath::kSeparators[0], 1));
- url1 = net::FilePathToFileURL(path_prefix + L"bot1.html");
- url2 = net::FilePathToFileURL(path_prefix + L"bot2.html");
- url3 = net::FilePathToFileURL(path_prefix + L"bot3.html");
+ url1 = net::FilePathToFileURL(
+ path_prefix.Append(FILE_PATH_LITERAL("bot1.html")));
+ url2 = net::FilePathToFileURL(
+ path_prefix.Append(FILE_PATH_LITERAL("bot2.html")));
+ url3 = net::FilePathToFileURL(
+ path_prefix.Append(FILE_PATH_LITERAL("bot3.html")));
}
virtual void QuitBrowserAndRestore() {
« no previous file with comments | « chrome/browser/session_history_uitest.cc ('k') | chrome/browser/ssl_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698