OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/profiles/profile.h" | 5 #include "chrome/browser/profiles/profile.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 #else | 133 #else |
134 false, | 134 false, |
135 #endif | 135 #endif |
136 PrefService::UNSYNCABLE_PREF); | 136 PrefService::UNSYNCABLE_PREF); |
137 prefs->RegisterBooleanPref(prefs::kEnableSpellCheck, | 137 prefs->RegisterBooleanPref(prefs::kEnableSpellCheck, |
138 true, | 138 true, |
139 PrefService::SYNCABLE_PREF); | 139 PrefService::SYNCABLE_PREF); |
140 prefs->RegisterBooleanPref(prefs::kEnableAutoSpellCorrect, | 140 prefs->RegisterBooleanPref(prefs::kEnableAutoSpellCorrect, |
141 true, | 141 true, |
142 PrefService::UNSYNCABLE_PREF); | 142 PrefService::UNSYNCABLE_PREF); |
143 prefs->RegisterBooleanPref(prefs::kSpeechInputCensorResults, | 143 prefs->RegisterBooleanPref(prefs::kSpeechInputFilterProfanities, |
144 true, | 144 true, |
145 PrefService::UNSYNCABLE_PREF); | 145 PrefService::UNSYNCABLE_PREF); |
146 #if defined(TOOLKIT_USES_GTK) | 146 #if defined(TOOLKIT_USES_GTK) |
147 prefs->RegisterBooleanPref(prefs::kUsesSystemTheme, | 147 prefs->RegisterBooleanPref(prefs::kUsesSystemTheme, |
148 GtkThemeService::DefaultUsesSystemTheme(), | 148 GtkThemeService::DefaultUsesSystemTheme(), |
149 PrefService::UNSYNCABLE_PREF); | 149 PrefService::UNSYNCABLE_PREF); |
150 #endif | 150 #endif |
151 prefs->RegisterFilePathPref(prefs::kCurrentThemePackFilename, | 151 prefs->RegisterFilePathPref(prefs::kCurrentThemePackFilename, |
152 FilePath(), | 152 FilePath(), |
153 PrefService::UNSYNCABLE_PREF); | 153 PrefService::UNSYNCABLE_PREF); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 return is_guest_session; | 212 return is_guest_session; |
213 #else | 213 #else |
214 return false; | 214 return false; |
215 #endif | 215 #endif |
216 } | 216 } |
217 | 217 |
218 bool Profile::IsSyncAccessible() { | 218 bool Profile::IsSyncAccessible() { |
219 ProfileSyncService* syncService = GetProfileSyncService(); | 219 ProfileSyncService* syncService = GetProfileSyncService(); |
220 return syncService && !syncService->IsManaged(); | 220 return syncService && !syncService->IsManaged(); |
221 } | 221 } |
OLD | NEW |