OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_store.h" | 5 #include "chrome/browser/extensions/extension_pref_store.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
11 #include "chrome/browser/profile.h" | 11 #include "chrome/browser/profile.h" |
12 #include "chrome/common/extensions/extension.h" | 12 #include "chrome/common/extensions/extension.h" |
13 #include "chrome/common/notification_service.h" | 13 #include "chrome/common/notification_service.h" |
14 | 14 |
15 ExtensionPrefStore::ExtensionPrefStore(Profile* profile, | 15 ExtensionPrefStore::ExtensionPrefStore(Profile* profile, |
16 PrefNotifier::PrefStoreType type) | 16 PrefNotifier::PrefStoreType type) |
17 : prefs_(new DictionaryValue()), | 17 : prefs_(new DictionaryValue()), |
18 profile_(profile), | 18 profile_(profile), |
19 type_(type) { | 19 type_(type) { |
20 RegisterObservers(); | 20 RegisterObservers(); |
(...skipping 156 matching lines...) Loading... |
177 } | 177 } |
178 } | 178 } |
179 | 179 |
180 ExtensionPrefStore::ExtensionPrefs::ExtensionPrefs(Extension* extension, | 180 ExtensionPrefStore::ExtensionPrefs::ExtensionPrefs(Extension* extension, |
181 PrefValueMap* values) : extension(extension), pref_values(values) {} | 181 PrefValueMap* values) : extension(extension), pref_values(values) {} |
182 | 182 |
183 ExtensionPrefStore::ExtensionPrefs::~ExtensionPrefs() { | 183 ExtensionPrefStore::ExtensionPrefs::~ExtensionPrefs() { |
184 STLDeleteValues(pref_values); | 184 STLDeleteValues(pref_values); |
185 delete pref_values; | 185 delete pref_values; |
186 } | 186 } |
OLD | NEW |