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

Side by Side Diff: components/prefs/scoped_user_pref_update.h

Issue 2539363004: Make base::Value::TYPE a scoped enum. (Closed)
Patch Set: Rebase Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // A helper class that assists preferences in firing notifications when lists 5 // A helper class that assists preferences in firing notifications when lists
6 // or dictionaries are changed. 6 // or dictionaries are changed.
7 7
8 #ifndef COMPONENTS_PREFS_SCOPED_USER_PREF_UPDATE_H_ 8 #ifndef COMPONENTS_PREFS_SCOPED_USER_PREF_UPDATE_H_
9 #define COMPONENTS_PREFS_SCOPED_USER_PREF_UPDATE_H_ 9 #define COMPONENTS_PREFS_SCOPED_USER_PREF_UPDATE_H_
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 T* operator->() { 95 T* operator->() {
96 return Get(); 96 return Get();
97 } 97 }
98 98
99 private: 99 private:
100 DISALLOW_COPY_AND_ASSIGN(ScopedUserPrefUpdate); 100 DISALLOW_COPY_AND_ASSIGN(ScopedUserPrefUpdate);
101 }; 101 };
102 102
103 typedef ScopedUserPrefUpdate<base::DictionaryValue, 103 typedef ScopedUserPrefUpdate<base::DictionaryValue,
104 base::Value::TYPE_DICTIONARY> 104 base::Value::Type::DICTIONARY>
105 DictionaryPrefUpdate; 105 DictionaryPrefUpdate;
106 typedef ScopedUserPrefUpdate<base::ListValue, base::Value::TYPE_LIST> 106 typedef ScopedUserPrefUpdate<base::ListValue, base::Value::Type::LIST>
107 ListPrefUpdate; 107 ListPrefUpdate;
108 108
109 #endif // COMPONENTS_PREFS_SCOPED_USER_PREF_UPDATE_H_ 109 #endif // COMPONENTS_PREFS_SCOPED_USER_PREF_UPDATE_H_
OLDNEW
« no previous file with comments | « components/prefs/pref_value_store_unittest.cc ('k') | components/proximity_auth/ble/bluetooth_low_energy_device_whitelist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698