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

Side by Side Diff: chrome/browser/api/prefs/pref_member.cc

Issue 10857031: Move PrefMember and PrefChangeRegistrar to api directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to parent Created 8 years, 4 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 #include "chrome/browser/prefs/pref_member.h" 5 #include "chrome/browser/api/prefs/pref_member.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/value_conversions.h" 9 #include "base/value_conversions.h"
10 #include "chrome/browser/prefs/pref_service.h" 10 #include "chrome/browser/prefs/pref_service.h"
11 #include "chrome/common/chrome_notification_types.h" 11 #include "chrome/common/chrome_notification_types.h"
12 12
13 using content::BrowserThread; 13 using content::BrowserThread;
14 14
15 namespace subtle { 15 namespace subtle {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 template <> 163 template <>
164 void PrefMember<FilePath>::UpdatePref(const FilePath& value) { 164 void PrefMember<FilePath>::UpdatePref(const FilePath& value) {
165 prefs()->SetFilePath(pref_name().c_str(), value); 165 prefs()->SetFilePath(pref_name().c_str(), value);
166 } 166 }
167 167
168 template <> 168 template <>
169 bool PrefMember<FilePath>::Internal::UpdateValueInternal(const Value& value) 169 bool PrefMember<FilePath>::Internal::UpdateValueInternal(const Value& value)
170 const { 170 const {
171 return base::GetValueAsFilePath(value, &value_); 171 return base::GetValueAsFilePath(value, &value_);
172 } 172 }
OLDNEW
« no previous file with comments | « chrome/browser/api/prefs/pref_member.h ('k') | chrome/browser/api/prefs/pref_member_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698