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

Unified Diff: chrome/browser/tab_contents/web_contents_unittest.cc

Issue 27354: Add FilePath setter/getter to pref service.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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
« no previous file with comments | « chrome/browser/profile.cc ('k') | chrome/common/chrome_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/web_contents_unittest.cc
===================================================================
--- chrome/browser/tab_contents/web_contents_unittest.cc (revision 10837)
+++ chrome/browser/tab_contents/web_contents_unittest.cc (working copy)
@@ -42,11 +42,10 @@
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());
« no previous file with comments | « chrome/browser/profile.cc ('k') | chrome/common/chrome_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698