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

Unified Diff: chrome/browser/importer/profile_writer.cc

Issue 8135001: Fixed behavior of the bookmark bar visibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DCHECK_EQ instead of DCHECK Created 9 years, 2 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/importer/profile_writer.h ('k') | chrome/browser/policy/configuration_policy_pref_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/profile_writer.cc
diff --git a/chrome/browser/importer/profile_writer.cc b/chrome/browser/importer/profile_writer.cc
index 087707bda02157ad88302e020d70074e1a9ac50f..ab414e551a3bd3faf16a329bcc29fe93137e356d 100644
--- a/chrome/browser/importer/profile_writer.cc
+++ b/chrome/browser/importer/profile_writer.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/importer/profile_writer.h"
+#include <map>
+#include <set>
#include <string>
#include "base/string_number_conversions.h"
@@ -57,13 +59,8 @@ void ShowBookmarkBar(Profile* profile) {
PrefService* prefs = profile->GetPrefs();
// Check whether the bookmark bar is shown in current pref.
if (!prefs->GetBoolean(prefs::kShowBookmarkBar)) {
- // Set the pref and notify the notification service.
prefs->SetBoolean(prefs::kShowBookmarkBar, true);
prefs->ScheduleSavePersistentPrefs();
- Source<Profile> source(profile);
- NotificationService::current()->Notify(
- chrome::NOTIFICATION_BOOKMARK_BAR_VISIBILITY_PREF_CHANGED, source,
- NotificationService::NoDetails());
}
}
« no previous file with comments | « chrome/browser/importer/profile_writer.h ('k') | chrome/browser/policy/configuration_policy_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698