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

Side by Side Diff: ios/chrome/browser/physical_web/physical_web_prefs_registration.cc

Issue 2494193002: Register Physical Web preference in Chrome's local state (Closed)
Patch Set: move to physical_web_prefs_registration Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ios/chrome/browser/physical_web/physical_web_prefs_registration.h" 5 #include "ios/chrome/browser/physical_web/physical_web_prefs_registration.h"
6 6
7 #include "components/pref_registry/pref_registry_syncable.h" 7 #include "components/pref_registry/pref_registry_syncable.h"
8 #include "components/prefs/pref_registry_simple.h"
8 #include "ios/chrome/browser/physical_web/physical_web_constants.h" 9 #include "ios/chrome/browser/physical_web/physical_web_constants.h"
9 #include "ios/chrome/browser/pref_names.h" 10 #include "ios/chrome/browser/pref_names.h"
10 11
11 void RegisterPhysicalWebBrowserStatePrefs( 12 void RegisterPhysicalWebBrowserStatePrefs(
12 user_prefs::PrefRegistrySyncable* registry) { 13 user_prefs::PrefRegistrySyncable* registry) {
13 registry->RegisterIntegerPref( 14 registry->RegisterIntegerPref(
14 prefs::kIosPhysicalWebEnabled, physical_web::kPhysicalWebOnboarding, 15 prefs::kIosPhysicalWebEnabled, physical_web::kPhysicalWebOnboarding,
15 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 16 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
16 } 17 }
18
19 void RegisterPhysicalWebLocalStatePrefs(PrefRegistrySimple* registry) {
20 registry->RegisterIntegerPref(prefs::kIosPhysicalWebEnabled,
21 physical_web::kPhysicalWebOnboarding);
22 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/physical_web/physical_web_prefs_registration.h ('k') | ios/chrome/browser/prefs/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698