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

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

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 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
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698