Index: chrome/browser/translate/translate_manager.h |
diff --git a/chrome/browser/translate/translate_manager.h b/chrome/browser/translate/translate_manager.h |
index 5fba25e4de7e2900faac74d864c25178031898da..7fd73e2f63cddf2c0ed87fdbab49b26cdbb2a14c 100644 |
--- a/chrome/browser/translate/translate_manager.h |
+++ b/chrome/browser/translate/translate_manager.h |
@@ -181,7 +181,11 @@ class TranslateManager : public NotificationObserver, |
TabContents* tab); |
NotificationRegistrar notification_registrar_; |
- PrefChangeRegistrar pref_change_registrar_; |
+ |
+ // Each PrefChangeRegistrar only tracks a single PrefService, so a map from |
+ // each PrefService used to its registrar is needed. |
+ typedef std::map<PrefService*, PrefChangeRegistrar*> PrefServiceRegistrarMap; |
+ PrefServiceRegistrarMap pref_change_registrars_; |
// A map that associates a profile with its parsed "accept languages". |
typedef std::set<std::string> LanguageSet; |