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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 prefs->RegisterBooleanPref(prefs::kSafeBrowsingEnabled, | 122 prefs->RegisterBooleanPref(prefs::kSafeBrowsingEnabled, |
123 true, | 123 true, |
124 PrefService::SYNCABLE_PREF); | 124 PrefService::SYNCABLE_PREF); |
125 prefs->RegisterBooleanPref(prefs::kSafeBrowsingReportingEnabled, | 125 prefs->RegisterBooleanPref(prefs::kSafeBrowsingReportingEnabled, |
126 false, | 126 false, |
127 PrefService::UNSYNCABLE_PREF); | 127 PrefService::UNSYNCABLE_PREF); |
128 // TODO(estade): IDS_SPELLCHECK_DICTIONARY should be an ASCII string. | 128 // TODO(estade): IDS_SPELLCHECK_DICTIONARY should be an ASCII string. |
129 prefs->RegisterLocalizedStringPref(prefs::kSpellCheckDictionary, | 129 prefs->RegisterLocalizedStringPref(prefs::kSpellCheckDictionary, |
130 IDS_SPELLCHECK_DICTIONARY, | 130 IDS_SPELLCHECK_DICTIONARY, |
131 PrefService::UNSYNCABLE_PREF); | 131 PrefService::UNSYNCABLE_PREF); |
| 132 prefs->RegisterBooleanPref(prefs::kSpellCheckUseSpellingService, |
| 133 #if defined(GOOGLE_CHROME_BUILD) |
| 134 true, |
| 135 #else |
| 136 false, |
| 137 #endif |
| 138 PrefService::UNSYNCABLE_PREF); |
132 prefs->RegisterBooleanPref(prefs::kEnableSpellCheck, | 139 prefs->RegisterBooleanPref(prefs::kEnableSpellCheck, |
133 true, | 140 true, |
134 PrefService::SYNCABLE_PREF); | 141 PrefService::SYNCABLE_PREF); |
135 prefs->RegisterBooleanPref(prefs::kEnableAutoSpellCorrect, | 142 prefs->RegisterBooleanPref(prefs::kEnableAutoSpellCorrect, |
136 true, | 143 true, |
137 PrefService::UNSYNCABLE_PREF); | 144 PrefService::UNSYNCABLE_PREF); |
138 prefs->RegisterBooleanPref(prefs::kSpeechInputCensorResults, | 145 prefs->RegisterBooleanPref(prefs::kSpeechInputCensorResults, |
139 true, | 146 true, |
140 PrefService::UNSYNCABLE_PREF); | 147 PrefService::UNSYNCABLE_PREF); |
141 #if defined(TOOLKIT_USES_GTK) | 148 #if defined(TOOLKIT_USES_GTK) |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 return is_guest_session; | 218 return is_guest_session; |
212 #else | 219 #else |
213 return false; | 220 return false; |
214 #endif | 221 #endif |
215 } | 222 } |
216 | 223 |
217 bool Profile::IsSyncAccessible() { | 224 bool Profile::IsSyncAccessible() { |
218 ProfileSyncService* syncService = GetProfileSyncService(); | 225 ProfileSyncService* syncService = GetProfileSyncService(); |
219 return syncService && !syncService->IsManaged(); | 226 return syncService && !syncService->IsManaged(); |
220 } | 227 } |
OLD | NEW |