OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/extensions/extension_pref_value_map.h" | 5 #include "chrome/browser/extensions/extension_pref_value_map.h" |
6 | 6 |
| 7 #include "base/prefs/pref_value_map.h" |
7 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
8 #include "base/values.h" | 9 #include "base/values.h" |
9 #include "chrome/browser/prefs/pref_value_map.h" | |
10 | 10 |
11 using extensions::ExtensionPrefsScope; | 11 using extensions::ExtensionPrefsScope; |
12 | 12 |
13 struct ExtensionPrefValueMap::ExtensionEntry { | 13 struct ExtensionPrefValueMap::ExtensionEntry { |
14 // Installation time of the extension. | 14 // Installation time of the extension. |
15 base::Time install_time; | 15 base::Time install_time; |
16 // Whether extension is enabled in the profile. | 16 // Whether extension is enabled in the profile. |
17 bool enabled; | 17 bool enabled; |
18 // Extension controlled preferences for the regular profile. | 18 // Extension controlled preferences for the regular profile. |
19 PrefValueMap regular_profile_preferences; | 19 PrefValueMap regular_profile_preferences; |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 | 355 |
356 void ExtensionPrefValueMap::NotifyPrefValueChanged(const std::string& key) { | 356 void ExtensionPrefValueMap::NotifyPrefValueChanged(const std::string& key) { |
357 FOR_EACH_OBSERVER(ExtensionPrefValueMap::Observer, observers_, | 357 FOR_EACH_OBSERVER(ExtensionPrefValueMap::Observer, observers_, |
358 OnPrefValueChanged(key)); | 358 OnPrefValueChanged(key)); |
359 } | 359 } |
360 | 360 |
361 void ExtensionPrefValueMap::NotifyOfDestruction() { | 361 void ExtensionPrefValueMap::NotifyOfDestruction() { |
362 FOR_EACH_OBSERVER(ExtensionPrefValueMap::Observer, observers_, | 362 FOR_EACH_OBSERVER(ExtensionPrefValueMap::Observer, observers_, |
363 OnExtensionPrefValueMapDestruction()); | 363 OnExtensionPrefValueMapDestruction()); |
364 } | 364 } |
OLD | NEW |