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 "extensions/browser/extension_pref_value_map.h" | 5 #include "extensions/browser/extension_pref_value_map.h" |
6 | 6 |
7 #include "base/prefs/pref_value_map.h" | |
8 #include "base/values.h" | 7 #include "base/values.h" |
| 8 #include "components/prefs/pref_value_map.h" |
9 | 9 |
10 using extensions::ExtensionPrefsScope; | 10 using extensions::ExtensionPrefsScope; |
11 | 11 |
12 struct ExtensionPrefValueMap::ExtensionEntry { | 12 struct ExtensionPrefValueMap::ExtensionEntry { |
13 // Installation time of the extension. | 13 // Installation time of the extension. |
14 base::Time install_time; | 14 base::Time install_time; |
15 // Whether extension is enabled in the profile. | 15 // Whether extension is enabled in the profile. |
16 bool enabled; | 16 bool enabled; |
17 // Whether the extension has access to the incognito profile. | 17 // Whether the extension has access to the incognito profile. |
18 bool incognito_enabled; | 18 bool incognito_enabled; |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 | 389 |
390 void ExtensionPrefValueMap::NotifyPrefValueChanged(const std::string& key) { | 390 void ExtensionPrefValueMap::NotifyPrefValueChanged(const std::string& key) { |
391 FOR_EACH_OBSERVER(ExtensionPrefValueMap::Observer, observers_, | 391 FOR_EACH_OBSERVER(ExtensionPrefValueMap::Observer, observers_, |
392 OnPrefValueChanged(key)); | 392 OnPrefValueChanged(key)); |
393 } | 393 } |
394 | 394 |
395 void ExtensionPrefValueMap::NotifyOfDestruction() { | 395 void ExtensionPrefValueMap::NotifyOfDestruction() { |
396 FOR_EACH_OBSERVER(ExtensionPrefValueMap::Observer, observers_, | 396 FOR_EACH_OBSERVER(ExtensionPrefValueMap::Observer, observers_, |
397 OnExtensionPrefValueMapDestruction()); | 397 OnExtensionPrefValueMapDestruction()); |
398 } | 398 } |
OLD | NEW |