diff options
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r-- | chrome/browser/tab_contents/web_contents_unittest.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/tab_contents/web_contents_unittest.cc b/chrome/browser/tab_contents/web_contents_unittest.cc index 9e595af0..a25c589 100644 --- a/chrome/browser/tab_contents/web_contents_unittest.cc +++ b/chrome/browser/tab_contents/web_contents_unittest.cc @@ -42,11 +42,10 @@ class WebContentsTestingProfile : public TestingProfile { virtual PrefService* GetPrefs() { if (!prefs_.get()) { - std::wstring source_path; + FilePath source_path; PathService::Get(chrome::DIR_TEST_DATA, &source_path); - file_util::AppendToPath(&source_path, L"profiles"); - file_util::AppendToPath(&source_path, L"chrome_prefs"); - file_util::AppendToPath(&source_path, L"Preferences"); + source_path = source_path.AppendASCII("profiles") + .AppendASCII("chrome_prefs").AppendASCII("Preferences"); prefs_.reset(new PrefService(source_path)); Profile::RegisterUserPrefs(prefs_.get()); |