Lines Matching defs:pref_service
26 #include "chrome/browser/prefs/pref_service.h"
247 PrefService* pref_service = profile_->GetPrefs();
248 if (pref_service->FindPreference(prefs::kSyncLastSyncedTime))
250 pref_service->RegisterInt64Pref(prefs::kSyncLastSyncedTime, 0);
251 pref_service->RegisterBooleanPref(prefs::kSyncHasSetupCompleted, false);
252 pref_service->RegisterBooleanPref(prefs::kSyncSuppressStart, false);
262 !pref_service->HasPrefPath(prefs::kSyncHasSetupCompleted);
265 pref_service->RegisterBooleanPref(prefs::kSyncBookmarks, true);
266 pref_service->RegisterBooleanPref(prefs::kSyncPasswords, enable_by_default);
267 pref_service->RegisterBooleanPref(prefs::kSyncPreferences, enable_by_default);
268 pref_service->RegisterBooleanPref(prefs::kSyncAutofill, enable_by_default);
269 pref_service->RegisterBooleanPref(prefs::kSyncThemes, enable_by_default);
270 pref_service->RegisterBooleanPref(prefs::kSyncTypedUrls, enable_by_default);
271 pref_service->RegisterBooleanPref(prefs::kSyncExtensions, enable_by_default);
272 pref_service->RegisterBooleanPref(prefs::kSyncApps, enable_by_default);
273 pref_service->RegisterBooleanPref(prefs::kSyncSessions, enable_by_default);
274 pref_service->RegisterBooleanPref(prefs::kKeepEverythingSynced,
276 pref_service->RegisterBooleanPref(prefs::kSyncManaged, false);
277 pref_service->RegisterStringPref(prefs::kEncryptionBootstrapToken, "");
279 pref_service->RegisterBooleanPref(prefs::kSyncAutofillProfile,
284 PrefService* pref_service = profile_->GetPrefs();
285 pref_service->ClearPref(prefs::kSyncLastSyncedTime);
286 pref_service->ClearPref(prefs::kSyncHasSetupCompleted);
287 pref_service->ClearPref(prefs::kEncryptionBootstrapToken);
291 pref_service->ScheduleSavePersistentPrefs();