pref_names.cc 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Copyright 2014 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 "build/build_config.h"
  5. #include "components/component_updater/pref_names.h"
  6. namespace prefs {
  7. // Policy that indicates the state of updates for the binary components.
  8. const char kComponentUpdatesEnabled[] =
  9. "component_updates.component_updates_enabled";
  10. // String that represents the recovery component last downloaded version. This
  11. // takes the usual 'a.b.c.d' notation.
  12. const char kRecoveryComponentVersion[] = "recovery_component.version";
  13. // Full path where last recovery component CRX was unpacked to.
  14. const char kRecoveryComponentUnpackPath[] = "recovery_component.unpack_path";
  15. #if BUILDFLAG(IS_WIN)
  16. // The last exit code integer value returned by the SwReporter. Saved in local
  17. // state.
  18. const char kSwReporterLastExitCode[] = "software_reporter.last_exit_code";
  19. // The last time SwReporter was triggered. Saved in local state.
  20. const char kSwReporterLastTimeTriggered[] =
  21. "software_reporter.last_time_triggered";
  22. // The last time SwReporter ran in send report mode. Saved in local state.
  23. const char kSwReporterLastTimeSentReport[] =
  24. "software_reporter.last_time_sent_report";
  25. // Enable running the SwReporter.
  26. const char kSwReporterEnabled[] = "software_reporter.enabled";
  27. // Which cohort of the SwReporter should be downloaded, unless overridden by the
  28. // safe_browsing::kReporterDistributionTagParam feature parameter.
  29. const char kSwReporterCohort[] = "software_reporter.cohort";
  30. // The time when kSwReporterCohort was last changed. Used to periodically
  31. // re-randomize which cohort users fall into.
  32. const char kSwReporterCohortSelectionTime[] =
  33. "software_reporter.cohort_selection_time";
  34. // Control whether SwReporter and Chrome Cleanup results are reported to Google.
  35. const char kSwReporterReportingEnabled[] = "software_reporter.reporting";
  36. // The version string of the reporter that triggered an SRT prompt. An empty
  37. // string when the prompt wasn't shown yet. Stored in the protected prefs of the
  38. // profile that owns the browser where the prompt was shown.
  39. const char kSwReporterPromptVersion[] = "software_reporter.prompt_version";
  40. // A string value uniquely identifying an SRTPrompt campaign so that users that
  41. // have been prompted with this seed before won't be prompted again until a new
  42. // seed comes in.
  43. const char kSwReporterPromptSeed[] = "software_reporter.prompt_seed";
  44. #endif
  45. } // namespace prefs