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

Side by Side Diff: chrome/browser/chromeos/login/default_pinned_apps_field_trial.cc

Issue 944433002: Revamp the MigrateBrowserPrefs and MigrateUserPrefs code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change asserts to expect in setupuserdatadirectory Created 5 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
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/login/default_pinned_apps_field_trial.h"
6
7 #include "base/basictypes.h"
8 #include "base/prefs/pref_registry_simple.h"
9 #include "base/prefs/pref_service.h"
10
11 namespace chromeos {
12 namespace default_pinned_apps_field_trial {
13
14 namespace {
15
16 // Name of a local state pref to store the list of users that participate
17 // the experiment.
18 const char kExperimentUsers[] = "DefaultPinnedAppsExperimentUsers";
19
20 } // namespace
21
22 void RegisterPrefs(PrefRegistrySimple* registry) {
23 registry->RegisterListPref(kExperimentUsers);
24 }
25
26 void MigratePrefs(PrefService* local_state) {
27 // TODO(xiyuan): Remove everything in M34.
28 local_state->ClearPref(kExperimentUsers);
29 }
30
31 } // namespace default_pinned_apps_field_trial
32 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/default_pinned_apps_field_trial.h ('k') | chrome/browser/prefs/browser_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698