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

Unified Diff: chrome/browser/importer/importer.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
« no previous file with comments | « chrome/browser/browser_shutdown.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/importer.cc
diff --git a/chrome/browser/importer/importer.cc b/chrome/browser/importer/importer.cc
index 370ec9ed450e17ddca990df3a00fb5cd5466de34..70e98a8111515fb2c5643894e5a860e09a92587c 100644
--- a/chrome/browser/importer/importer.cc
+++ b/chrome/browser/importer/importer.cc
@@ -87,7 +87,7 @@ void ProfileWriter::AddHomepage(const GURL& home_page) {
PrefService* prefs = profile_->GetPrefs();
// NOTE: We set the kHomePage value, but keep the NewTab page as the homepage.
prefs->SetString(prefs::kHomePage, ASCIIToWide(home_page.spec()));
- prefs->ScheduleSavePersistentPrefs(g_browser_process->file_thread());
+ prefs->ScheduleSavePersistentPrefs();
}
void ProfileWriter::AddBookmarkEntry(
@@ -295,7 +295,7 @@ void ProfileWriter::ShowBookmarkBar() {
if (!prefs->GetBoolean(prefs::kShowBookmarkBar)) {
// Set the pref and notify the notification service.
prefs->SetBoolean(prefs::kShowBookmarkBar, true);
- prefs->ScheduleSavePersistentPrefs(g_browser_process->file_thread());
+ prefs->ScheduleSavePersistentPrefs();
Source<Profile> source(profile_);
NotificationService::current()->Notify(
NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED, source,
« no previous file with comments | « chrome/browser/browser_shutdown.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698