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 "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 Loading... |
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 } |
OLD | NEW |