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

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

Issue 83001: ImportantFileWriter (Closed)
Patch Set: share more code Created 11 years, 7 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
« no previous file with comments | « chrome/test/reliability/page_load_test.cc ('k') | no next file » | 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 virtual WebDataService* GetWebDataService(ServiceAccessType access) { 92 virtual WebDataService* GetWebDataService(ServiceAccessType access) {
93 return NULL; 93 return NULL;
94 } 94 }
95 virtual PrefService* GetPrefs() { 95 virtual PrefService* GetPrefs() {
96 FilePath prefs_filename; 96 FilePath prefs_filename;
97 PathService::Get(base::DIR_TEMP, &prefs_filename); 97 PathService::Get(base::DIR_TEMP, &prefs_filename);
98 prefs_filename = 98 prefs_filename =
99 prefs_filename.Append(FILE_PATH_LITERAL("TestPreferences")); 99 prefs_filename.Append(FILE_PATH_LITERAL("TestPreferences"));
100 if (!prefs_.get()) { 100 if (!prefs_.get()) {
101 prefs_.reset(new PrefService(prefs_filename)); 101 prefs_.reset(new PrefService(prefs_filename, NULL));
102 Profile::RegisterUserPrefs(prefs_.get()); 102 Profile::RegisterUserPrefs(prefs_.get());
103 browser::RegisterAllPrefs(prefs_.get(), prefs_.get()); 103 browser::RegisterAllPrefs(prefs_.get(), prefs_.get());
104 } 104 }
105 return prefs_.get(); 105 return prefs_.get();
106 } 106 }
107 virtual TemplateURLModel* GetTemplateURLModel() { 107 virtual TemplateURLModel* GetTemplateURLModel() {
108 return template_url_model_.get(); 108 return template_url_model_.get();
109 } 109 }
110 virtual TemplateURLFetcher* GetTemplateURLFetcher() { 110 virtual TemplateURLFetcher* GetTemplateURLFetcher() {
111 return NULL; 111 return NULL;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 217
218 std::wstring id_; 218 std::wstring id_;
219 219
220 bool off_the_record_; 220 bool off_the_record_;
221 221
222 // Did the last session exit cleanly? Default is true. 222 // Did the last session exit cleanly? Default is true.
223 bool last_session_exited_cleanly_; 223 bool last_session_exited_cleanly_;
224 }; 224 };
225 225
226 #endif // CHROME_TEST_TESTING_PROFILE_H_ 226 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/test/reliability/page_load_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698