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

Side by Side Diff: base/prefs/pref_member.cc

Issue 23514018: Add Reset to ScopedClosureRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android fix 2 Created 7 years, 3 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
« no previous file with comments | « base/mac/bind_objc_block_unittest.mm ('k') | base/test/unit_test_launcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "base/prefs/pref_member.h" 5 #include "base/prefs/pref_member.h"
6 6
7 #include "base/bind_helpers.h"
8 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/callback_helpers.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 {
16 16
17 PrefMemberBase::PrefMemberBase() 17 PrefMemberBase::PrefMemberBase()
18 : prefs_(NULL), 18 : prefs_(NULL),
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 base::ListValue list_value; 217 base::ListValue list_value;
218 list_value.AppendStrings(value); 218 list_value.AppendStrings(value);
219 prefs()->Set(pref_name().c_str(), list_value); 219 prefs()->Set(pref_name().c_str(), list_value);
220 } 220 }
221 221
222 template <> 222 template <>
223 bool PrefMember<std::vector<std::string> >::Internal::UpdateValueInternal( 223 bool PrefMember<std::vector<std::string> >::Internal::UpdateValueInternal(
224 const base::Value& value) const { 224 const base::Value& value) const {
225 return subtle::PrefMemberVectorStringUpdate(value, &value_); 225 return subtle::PrefMemberVectorStringUpdate(value, &value_);
226 } 226 }
OLDNEW
« no previous file with comments | « base/mac/bind_objc_block_unittest.mm ('k') | base/test/unit_test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698