Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: chrome/browser/extensions/extension_pref_store.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/prefs/pref_service.h" 10 #include "chrome/browser/prefs/pref_service.h"
11 #include "chrome/browser/profile.h" 11 #include "chrome/browser/profiles/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();
21 } 21 }
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 } 190 }
191 } 191 }
192 192
193 ExtensionPrefStore::ExtensionPrefs::ExtensionPrefs(const Extension* extension, 193 ExtensionPrefStore::ExtensionPrefs::ExtensionPrefs(const Extension* extension,
194 PrefValueMap* values) : extension(extension), pref_values(values) {} 194 PrefValueMap* values) : extension(extension), pref_values(values) {}
195 195
196 ExtensionPrefStore::ExtensionPrefs::~ExtensionPrefs() { 196 ExtensionPrefStore::ExtensionPrefs::~ExtensionPrefs() {
197 STLDeleteValues(pref_values); 197 STLDeleteValues(pref_values);
198 delete pref_values; 198 delete pref_values;
199 } 199 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_popup_api.cc ('k') | chrome/browser/extensions/extension_process_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698