1 // Copyright 2020 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/video_tutorials/prefs.h" 6 7 #include "components/prefs/pref_registry_simple.h" 8 #include "components/prefs/pref_service.h" 9 10 namespace video_tutorials { 11 12 constexpr char kPreferredLocaleKey[] = "video_tutorials.perferred_locale"; 13 14 constexpr char kLastUpdatedTimeKey[] = "video_tutorials.last_updated_time"; 15 RegisterPrefs(PrefRegistrySimple * registry)16void RegisterPrefs(PrefRegistrySimple* registry) { 17 registry->RegisterStringPref(kPreferredLocaleKey, std::string()); 18 registry->RegisterTimePref(kLastUpdatedTimeKey, base::Time()); 19 } 20 21 } // namespace video_tutorials 22