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

Unified Diff: chrome/browser/sync/glue/preference_change_processor.cc

Issue 1562011: Don't compare wchar_t *s (Closed)
Patch Set: Created 10 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/preference_change_processor.cc
diff --git a/chrome/browser/sync/glue/preference_change_processor.cc b/chrome/browser/sync/glue/preference_change_processor.cc
index 921b30b0d49e1730ccac6ab06b0986dd7aed1209..6203c55bb60d9900720753a64e27bb9e45ac5071 100644
--- a/chrome/browser/sync/glue/preference_change_processor.cc
+++ b/chrome/browser/sync/glue/preference_change_processor.cc
@@ -120,7 +120,7 @@ void PreferenceChangeProcessor::ApplyChangesFromSyncModel(
pref_service_->ClearPref(pref_name);
} else {
pref_service_->Set(pref_name, *value);
- if (pref_name == prefs::kShowBookmarkBar) {
+ if (0 == name.compare(prefs::kShowBookmarkBar)) {
// If it was the bookmark bar, send an additional notification.
NotificationService::current()->Notify(
NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698