OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/pref_member.h" | 5 #include "chrome/browser/prefs/pref_member.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/pref_service.h" | 8 #include "chrome/browser/prefs/pref_service.h" |
9 #include "chrome/common/notification_type.h" | 9 #include "chrome/common/notification_type.h" |
10 | 10 |
11 namespace subtle { | 11 namespace subtle { |
12 | 12 |
13 PrefMemberBase::PrefMemberBase() | 13 PrefMemberBase::PrefMemberBase() |
14 : observer_(NULL), | 14 : observer_(NULL), |
15 prefs_(NULL), | 15 prefs_(NULL), |
16 is_synced_(false), | 16 is_synced_(false), |
17 setting_value_(false) { | 17 setting_value_(false) { |
18 } | 18 } |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 FilePathPrefMember::~FilePathPrefMember() { | 123 FilePathPrefMember::~FilePathPrefMember() { |
124 } | 124 } |
125 | 125 |
126 void FilePathPrefMember::UpdateValueFromPref() { | 126 void FilePathPrefMember::UpdateValueFromPref() { |
127 value_ = prefs()->GetFilePath(pref_name().c_str()); | 127 value_ = prefs()->GetFilePath(pref_name().c_str()); |
128 } | 128 } |
129 | 129 |
130 void FilePathPrefMember::UpdatePref(const FilePath& value) { | 130 void FilePathPrefMember::UpdatePref(const FilePath& value) { |
131 prefs()->SetFilePath(pref_name().c_str(), value); | 131 prefs()->SetFilePath(pref_name().c_str(), value); |
132 } | 132 } |
OLD | NEW |