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

Side by Side Diff: extensions/browser/extension_pref_value_map.cc

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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
OLDNEW
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"
7 #include "base/values.h" 8 #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
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 }
OLDNEW
« no previous file with comments | « extensions/browser/extension_pref_store.h ('k') | extensions/browser/extension_pref_value_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698