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

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: readd kbrowserwindowplacement to ui_prefs.cc Created 5 years, 10 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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/chromeos/login/default_pinned_apps_field_trial.h" 5 #include "chrome/browser/chromeos/login/default_pinned_apps_field_trial.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/prefs/pref_registry_simple.h" 8 #include "base/prefs/pref_registry_simple.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 10
11 namespace chromeos { 11 namespace chromeos {
12 namespace default_pinned_apps_field_trial { 12 namespace default_pinned_apps_field_trial {
13 13
14 namespace { 14 namespace {
15 15
16 // Name of a local state pref to store the list of users that participate 16 // Name of a local state pref to store the list of users that participate
17 // the experiment. 17 // the experiment.
18 const char kExperimentUsers[] = "DefaultPinnedAppsExperimentUsers"; 18 const char kExperimentUsers[] = "DefaultPinnedAppsExperimentUsers";
19 19
20 } // namespace 20 } // namespace
21 21
22 void RegisterPrefs(PrefRegistrySimple* registry) { 22 void RegisterPrefs(PrefRegistrySimple* registry) {
23 registry->RegisterListPref(kExperimentUsers); 23 registry->RegisterListPref(kExperimentUsers);
24 } 24 }
25 25
26 void MigratePrefs(PrefService* local_state) {
gab 2015/02/24 20:55:20 Delete the rest of this file and its header in fac
rkaplow 2015/02/24 22:41:11 ah, missed that. Done
27 // TODO(xiyuan): Remove everything in M34.
28 local_state->ClearPref(kExperimentUsers);
29 }
30 26
31 } // namespace default_pinned_apps_field_trial 27 } // namespace default_pinned_apps_field_trial
32 } // namespace chromeos 28 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698