OLD | NEW |
---|---|
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/prefs/browser_prefs.h" | 5 #include "chrome/browser/prefs/browser_prefs.h" |
6 | 6 |
7 #include "apps/prefs.h" | 7 #include "apps/prefs.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/prefs/pref_registry_simple.h" | 9 #include "base/prefs/pref_registry_simple.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
503 chromeos::PowerPrefs::RegisterLoginProfilePrefs(registry); | 503 chromeos::PowerPrefs::RegisterLoginProfilePrefs(registry); |
504 } | 504 } |
505 #endif | 505 #endif |
506 | 506 |
507 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 507 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
508 void RegisterNewProfileUIPrefs(user_prefs::PrefRegistrySyncable* registry) { | 508 void RegisterNewProfileUIPrefs(user_prefs::PrefRegistrySyncable* registry) { |
509 registry->RegisterIntegerPref( | 509 registry->RegisterIntegerPref( |
510 prefs::kProfileAvatarTutorialShown, | 510 prefs::kProfileAvatarTutorialShown, |
511 0, | 511 0, |
512 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 512 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
513 registry->RegisterBooleanPref( | |
gab
2014/03/14 16:43:58
The |registry| isn't typically invoked directly fr
noms (inactive)
2014/03/14 18:24:36
Done. Moved to profiles::RegisterTutorialPrefs()
| |
514 prefs::kProfileUserManagerTutorialShown, | |
515 false, | |
516 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
513 } | 517 } |
514 #endif | 518 #endif |
515 | 519 |
516 void MigrateUserPrefs(Profile* profile) { | 520 void MigrateUserPrefs(Profile* profile) { |
517 PrefService* prefs = profile->GetPrefs(); | 521 PrefService* prefs = profile->GetPrefs(); |
518 | 522 |
519 // Cleanup prefs from now-removed protector feature. | 523 // Cleanup prefs from now-removed protector feature. |
520 prefs->ClearPref(kBackupPref); | 524 prefs->ClearPref(kBackupPref); |
521 | 525 |
522 #if !defined(OS_ANDROID) | 526 #if !defined(OS_ANDROID) |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
592 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, | 596 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, |
593 current_version); | 597 current_version); |
594 } | 598 } |
595 | 599 |
596 #if defined(OS_CHROMEOS) | 600 #if defined(OS_CHROMEOS) |
597 chromeos::default_pinned_apps_field_trial::MigratePrefs(local_state); | 601 chromeos::default_pinned_apps_field_trial::MigratePrefs(local_state); |
598 #endif | 602 #endif |
599 } | 603 } |
600 | 604 |
601 } // namespace chrome | 605 } // namespace chrome |
OLD | NEW |