| Index: chrome/browser/importer/profile_writer.cc
|
| diff --git a/chrome/browser/importer/profile_writer.cc b/chrome/browser/importer/profile_writer.cc
|
| index 9496359db7969df5d55ff049ef7eb85aa020c2d2..501aa37bf6758512f0adc791a23aa4e67ea554d0 100644
|
| --- a/chrome/browser/importer/profile_writer.cc
|
| +++ b/chrome/browser/importer/profile_writer.cc
|
| @@ -55,12 +55,7 @@ string16 GenerateUniqueFolderName(BookmarkModel* model,
|
|
|
| // Shows the bookmarks toolbar.
|
| void ShowBookmarkBar(Profile* profile) {
|
| - PrefService* prefs = profile->GetPrefs();
|
| - // Check whether the bookmark bar is shown in current pref.
|
| - if (!prefs->GetBoolean(prefs::kShowBookmarkBar)) {
|
| - prefs->SetBoolean(prefs::kShowBookmarkBar, true);
|
| - prefs->ScheduleSavePersistentPrefs();
|
| - }
|
| + profile->GetPrefs()->SetBoolean(prefs::kShowBookmarkBar, true);
|
| }
|
|
|
| } // namespace
|
| @@ -115,7 +110,6 @@ void ProfileWriter::AddHomepage(const GURL& home_page) {
|
| const PrefService::Preference* pref = prefs->FindPreference(prefs::kHomePage);
|
| if (pref && !pref->IsManaged()) {
|
| prefs->SetString(prefs::kHomePage, home_page.spec());
|
| - prefs->ScheduleSavePersistentPrefs();
|
| }
|
| }
|
|
|
|
|