tile_service_prefs.cc 688 B

12345678910111213141516171819
  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. #include "components/query_tiles/tile_service_prefs.h"
  5. #include "components/prefs/pref_registry_simple.h"
  6. #include "components/prefs/pref_service.h"
  7. namespace query_tiles {
  8. constexpr char kBackoffEntryKey[] = "query_tiles.backoff_entry_key";
  9. constexpr char kFirstScheduleTimeKey[] = "query_tiles.first_schedule_time_key";
  10. void RegisterPrefs(PrefRegistrySimple* registry) {
  11. registry->RegisterListPref(kBackoffEntryKey);
  12. registry->RegisterTimePref(kFirstScheduleTimeKey, base::Time());
  13. }
  14. } // namespace query_tiles