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

Side by Side Diff: chrome/browser/prefs/browser_prefs.cc

Issue 199533004: [Mac, Win] Show a user manager tutorial once per profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698