| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/sync/glue/preference_model_associator.h" | 5 #include "chrome/browser/sync/glue/preference_model_associator.h" |
| 6 | 6 |
| 7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/browser/chrome_thread.h" | 11 #include "chrome/browser/chrome_thread.h" |
| 12 #include "chrome/browser/pref_service.h" | 12 #include "chrome/browser/prefs/pref_service.h" |
| 13 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profile.h" |
| 14 #include "chrome/browser/sync/engine/syncapi.h" | 14 #include "chrome/browser/sync/engine/syncapi.h" |
| 15 #include "chrome/browser/sync/glue/synchronized_preferences.h" | 15 #include "chrome/browser/sync/glue/synchronized_preferences.h" |
| 16 #include "chrome/browser/sync/profile_sync_service.h" | 16 #include "chrome/browser/sync/profile_sync_service.h" |
| 17 #include "chrome/browser/sync/protocol/preference_specifics.pb.h" | 17 #include "chrome/browser/sync/protocol/preference_specifics.pb.h" |
| 18 #include "chrome/common/json_value_serializer.h" | 18 #include "chrome/common/json_value_serializer.h" |
| 19 #include "chrome/common/notification_service.h" | 19 #include "chrome/common/notification_service.h" |
| 20 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
| 21 | 21 |
| 22 namespace browser_sync { | 22 namespace browser_sync { |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 // notification to update the UI. | 307 // notification to update the UI. |
| 308 if (0 == pref_name.compare(prefs::kShowBookmarkBar)) { | 308 if (0 == pref_name.compare(prefs::kShowBookmarkBar)) { |
| 309 NotificationService::current()->Notify( | 309 NotificationService::current()->Notify( |
| 310 NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED, | 310 NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED, |
| 311 Source<PreferenceModelAssociator>(this), | 311 Source<PreferenceModelAssociator>(this), |
| 312 NotificationService::NoDetails()); | 312 NotificationService::NoDetails()); |
| 313 } | 313 } |
| 314 } | 314 } |
| 315 | 315 |
| 316 } // namespace browser_sync | 316 } // namespace browser_sync |
| OLD | NEW |