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

Side by Side Diff: chrome/test/testing_profile.h

Issue 27354: Add FilePath setter/getter to pref service.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/reliability/page_load_test.cc ('k') | chrome/test/unit/unit_tests.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_TEST_TESTING_PROFILE_H_ 5 #ifndef CHROME_TEST_TESTING_PROFILE_H_
6 #define CHROME_TEST_TESTING_PROFILE_H_ 6 #define CHROME_TEST_TESTING_PROFILE_H_
7 7
8 #include "base/base_paths.h" 8 #include "base/base_paths.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 virtual WebDataService* GetWebDataService(ServiceAccessType access) { 96 virtual WebDataService* GetWebDataService(ServiceAccessType access) {
97 return NULL; 97 return NULL;
98 } 98 }
99 virtual PrefService* GetPrefs() { 99 virtual PrefService* GetPrefs() {
100 FilePath prefs_filename; 100 FilePath prefs_filename;
101 PathService::Get(base::DIR_TEMP, &prefs_filename); 101 PathService::Get(base::DIR_TEMP, &prefs_filename);
102 prefs_filename = 102 prefs_filename =
103 prefs_filename.Append(FILE_PATH_LITERAL("TestPreferences")); 103 prefs_filename.Append(FILE_PATH_LITERAL("TestPreferences"));
104 if (!prefs_.get()) { 104 if (!prefs_.get()) {
105 prefs_.reset(new PrefService(prefs_filename.ToWStringHack())); 105 prefs_.reset(new PrefService(prefs_filename));
106 Profile::RegisterUserPrefs(prefs_.get()); 106 Profile::RegisterUserPrefs(prefs_.get());
107 browser::RegisterAllPrefs(prefs_.get(), prefs_.get()); 107 browser::RegisterAllPrefs(prefs_.get(), prefs_.get());
108 } 108 }
109 return prefs_.get(); 109 return prefs_.get();
110 } 110 }
111 virtual TemplateURLModel* GetTemplateURLModel() { 111 virtual TemplateURLModel* GetTemplateURLModel() {
112 return template_url_model_.get(); 112 return template_url_model_.get();
113 } 113 }
114 virtual TemplateURLFetcher* GetTemplateURLFetcher() { 114 virtual TemplateURLFetcher* GetTemplateURLFetcher() {
115 return NULL; 115 return NULL;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 std::wstring id_; 222 std::wstring id_;
223 223
224 bool off_the_record_; 224 bool off_the_record_;
225 225
226 // Did the last session exit cleanly? Default is true. 226 // Did the last session exit cleanly? Default is true.
227 bool last_session_exited_cleanly_; 227 bool last_session_exited_cleanly_;
228 }; 228 };
229 229
230 #endif // CHROME_TEST_TESTING_PROFILE_H_ 230 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/test/reliability/page_load_test.cc ('k') | chrome/test/unit/unit_tests.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698