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

Unified Diff: chrome/browser/profile.cc

Issue 83001: ImportantFileWriter (Closed)
Patch Set: share more code Created 11 years, 8 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/browser/profile.cc
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc
index a234ac5a27ae437620dcf774e5da893ce6b88a66..2a95f9e642d75293d31a281e4eb5fd2e46a7bc8e 100644
--- a/chrome/browser/profile.cc
+++ b/chrome/browser/profile.cc
@@ -573,7 +573,8 @@ SSLHostState* ProfileImpl::GetSSLHostState() {
PrefService* ProfileImpl::GetPrefs() {
if (!prefs_.get()) {
- prefs_.reset(new PrefService(GetPrefFilePath()));
+ prefs_.reset(new PrefService(GetPrefFilePath(),
+ g_browser_process->file_thread()));
// The Profile class and ProfileManager class may read some prefs so
// register known prefs as soon as possible.
@@ -587,7 +588,7 @@ PrefService* ProfileImpl::GetPrefs() {
// Mark the session as open.
prefs_->SetBoolean(prefs::kSessionExitedCleanly, false);
// Make sure we save to disk that the session has opened.
- prefs_->ScheduleSavePersistentPrefs(g_browser_process->file_thread());
+ prefs_->ScheduleSavePersistentPrefs();
}
return prefs_.get();
@@ -879,7 +880,7 @@ void ProfileImpl::MarkAsCleanShutdown() {
// NOTE: If you change what thread this writes on, be sure and update
// ChromeFrame::EndSession().
- prefs_->SavePersistentPrefs(g_browser_process->file_thread());
+ prefs_->SavePersistentPrefs();
}
}
« no previous file with comments | « chrome/browser/metrics/metrics_service_uitest.cc ('k') | chrome/browser/search_engines/template_url_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698