OLD | NEW |
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 #include "base/prefs/public/pref_member.h" | 5 #include "base/prefs/pref_member.h" |
6 | 6 |
7 #include "base/bind_helpers.h" | 7 #include "base/bind_helpers.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
11 #include "base/value_conversions.h" | 11 #include "base/value_conversions.h" |
12 | 12 |
13 using base::MessageLoopProxy; | 13 using base::MessageLoopProxy; |
14 | 14 |
15 namespace subtle { | 15 namespace subtle { |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 ListValue list_value; | 215 ListValue list_value; |
216 list_value.AppendStrings(value); | 216 list_value.AppendStrings(value); |
217 prefs()->Set(pref_name().c_str(), list_value); | 217 prefs()->Set(pref_name().c_str(), list_value); |
218 } | 218 } |
219 | 219 |
220 template <> | 220 template <> |
221 bool PrefMember<std::vector<std::string> >::Internal::UpdateValueInternal( | 221 bool PrefMember<std::vector<std::string> >::Internal::UpdateValueInternal( |
222 const base::Value& value) const { | 222 const base::Value& value) const { |
223 return subtle::PrefMemberVectorStringUpdate(value, &value_); | 223 return subtle::PrefMemberVectorStringUpdate(value, &value_); |
224 } | 224 } |
OLD | NEW |