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

Side by Side Diff: chrome/browser/prefs/scoped_user_pref_update.h

Issue 16915006: Convert most of extensions and some other random stuff to using the base namespace for Values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_PREFS_SCOPED_USER_PREF_UPDATE_H_ 8 #ifndef CHROME_BROWSER_PREFS_SCOPED_USER_PREF_UPDATE_H_
9 #define CHROME_BROWSER_PREFS_SCOPED_USER_PREF_UPDATE_H_ 9 #define CHROME_BROWSER_PREFS_SCOPED_USER_PREF_UPDATE_H_
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 92
93 T* operator->() { 93 T* operator->() {
94 return Get(); 94 return Get();
95 } 95 }
96 96
97 private: 97 private:
98 DISALLOW_COPY_AND_ASSIGN(ScopedUserPrefUpdate); 98 DISALLOW_COPY_AND_ASSIGN(ScopedUserPrefUpdate);
99 }; 99 };
100 100
101 typedef ScopedUserPrefUpdate<base::DictionaryValue, Value::TYPE_DICTIONARY> 101 typedef ScopedUserPrefUpdate<base::DictionaryValue,
102 base::Value::TYPE_DICTIONARY>
102 DictionaryPrefUpdate; 103 DictionaryPrefUpdate;
103 typedef ScopedUserPrefUpdate<base::ListValue, Value::TYPE_LIST> ListPrefUpdate; 104 typedef ScopedUserPrefUpdate<base::ListValue, base::Value::TYPE_LIST>
105 ListPrefUpdate;
104 106
105 #endif // CHROME_BROWSER_PREFS_SCOPED_USER_PREF_UPDATE_H_ 107 #endif // CHROME_BROWSER_PREFS_SCOPED_USER_PREF_UPDATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698