OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/stl_util-inl.h" | 7 #include "base/stl_util.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/prefs/pref_value_map.h" | 9 #include "chrome/browser/prefs/pref_value_map.h" |
10 | 10 |
11 struct ExtensionPrefValueMap::ExtensionEntry { | 11 struct ExtensionPrefValueMap::ExtensionEntry { |
12 // Installation time of the extension. | 12 // Installation time of the extension. |
13 base::Time install_time; | 13 base::Time install_time; |
14 // Whether extension is enabled in the profile. | 14 // Whether extension is enabled in the profile. |
15 bool enabled; | 15 bool enabled; |
16 // Extension controlled preferences for the regular profile. | 16 // Extension controlled preferences for the regular profile. |
17 PrefValueMap regular_profile_preferences; | 17 PrefValueMap regular_profile_preferences; |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 314 |
315 void ExtensionPrefValueMap::NotifyPrefValueChanged(const std::string& key) { | 315 void ExtensionPrefValueMap::NotifyPrefValueChanged(const std::string& key) { |
316 FOR_EACH_OBSERVER(ExtensionPrefValueMap::Observer, observers_, | 316 FOR_EACH_OBSERVER(ExtensionPrefValueMap::Observer, observers_, |
317 OnPrefValueChanged(key)); | 317 OnPrefValueChanged(key)); |
318 } | 318 } |
319 | 319 |
320 void ExtensionPrefValueMap::NotifyOfDestruction() { | 320 void ExtensionPrefValueMap::NotifyOfDestruction() { |
321 FOR_EACH_OBSERVER(ExtensionPrefValueMap::Observer, observers_, | 321 FOR_EACH_OBSERVER(ExtensionPrefValueMap::Observer, observers_, |
322 OnExtensionPrefValueMapDestruction()); | 322 OnExtensionPrefValueMapDestruction()); |
323 } | 323 } |
OLD | NEW |