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

Unified Diff: chrome/test/ui/ui_test.cc

Issue 293013: Deprecate PathService::Get(..., wstring*) and use FilePath instead. (Closed)
Patch Set: Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/ui/ui_test.cc
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc
index cc538865dc0665d44585d6260c7b6e728fdabe89..4f1819544bf2ea3c1ad2233cf9c5b4901ec763c8 100644
--- a/chrome/test/ui/ui_test.cc
+++ b/chrome/test/ui/ui_test.cc
@@ -644,10 +644,9 @@ DictionaryValue* UITest::GetLocalState() {
}
DictionaryValue* UITest::GetDefaultProfilePreferences() {
- std::wstring path_wstring;
- PathService::Get(chrome::DIR_USER_DATA, &path_wstring);
- file_util::AppendToPath(&path_wstring, chrome::kNotSignedInProfile);
- FilePath path(FilePath::FromWStringHack(path_wstring));
+ FilePath path;
+ PathService::Get(chrome::DIR_USER_DATA, &path);
+ path = path.AppendASCII(WideToASCII(chrome::kNotSignedInProfile));
tony 2009/10/19 22:46:49 tears :(
return LoadDictionaryValueFromPath(path.Append(chrome::kPreferencesFilename));
}

Powered by Google App Engine
This is Rietveld 408576698