OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/font_family_cache.h" | 5 #include "chrome/browser/font_family_cache.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <map> | 9 #include <map> |
8 | 10 |
9 #include "base/prefs/pref_service.h" | 11 #include "base/prefs/pref_service.h" |
10 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
11 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/browser/chrome_notification_types.h" | 14 #include "chrome/browser/chrome_notification_types.h" |
13 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/common/pref_font_webkit_names.h" | 16 #include "chrome/common/pref_font_webkit_names.h" |
15 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
16 #include "content/public/browser/notification_source.h" | 18 #include "content/public/browser/notification_source.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 } | 127 } |
126 } | 128 } |
127 } | 129 } |
128 | 130 |
129 void FontFamilyCache::Observe(int type, | 131 void FontFamilyCache::Observe(int type, |
130 const content::NotificationSource& source, | 132 const content::NotificationSource& source, |
131 const content::NotificationDetails& details) { | 133 const content::NotificationDetails& details) { |
132 DCHECK_EQ(chrome::NOTIFICATION_PROFILE_DESTROYED, type); | 134 DCHECK_EQ(chrome::NOTIFICATION_PROFILE_DESTROYED, type); |
133 profile_pref_registrar_.RemoveAll(); | 135 profile_pref_registrar_.RemoveAll(); |
134 } | 136 } |
OLD | NEW |