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