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

Side by Side Diff: chrome/browser/profiles/profile.cc

Issue 7713033: Integrate the Spelling service to Chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/tab_contents/render_view_context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698