| 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/theme_change_processor.h" | 5 #include "chrome/browser/sync/glue/theme_change_processor.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/sync/engine/syncapi.h" | 9 #include "chrome/browser/sync/engine/syncapi.h" |
| 10 #include "chrome/browser/sync/glue/theme_util.h" | 10 #include "chrome/browser/sync/glue/theme_util.h" |
| 11 #include "chrome/browser/sync/protocol/theme_specifics.pb.h" | 11 #include "chrome/browser/sync/protocol/theme_specifics.pb.h" |
| 12 #include "chrome/browser/themes/browser_theme_provider.h" | 12 #include "chrome/browser/themes/browser_theme_provider.h" |
| 13 #include "chrome/common/extensions/extension.h" | 13 #include "chrome/common/extensions/extension.h" |
| 14 #include "chrome/common/notification_details.h" | 14 #include "chrome/common/notification_details.h" |
| 15 #include "chrome/common/notification_source.h" | 15 #include "chrome/common/notification_source.h" |
| 16 | 16 |
| 17 namespace browser_sync { | 17 namespace browser_sync { |
| 18 | 18 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 Source<Profile>(profile_)); | 206 Source<Profile>(profile_)); |
| 207 } | 207 } |
| 208 | 208 |
| 209 void ThemeChangeProcessor::StopObserving() { | 209 void ThemeChangeProcessor::StopObserving() { |
| 210 DCHECK(profile_); | 210 DCHECK(profile_); |
| 211 VLOG(1) << "Unobserving all notifications"; | 211 VLOG(1) << "Unobserving all notifications"; |
| 212 notification_registrar_.RemoveAll(); | 212 notification_registrar_.RemoveAll(); |
| 213 } | 213 } |
| 214 | 214 |
| 215 } // namespace browser_sync | 215 } // namespace browser_sync |
| OLD | NEW |