command_line_config_policy.cc 918 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright 2018 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/update_client/command_line_config_policy.h"
  5. #include "build/build_config.h"
  6. #include "url/gurl.h"
  7. namespace update_client {
  8. bool CommandLineConfigPolicy::BackgroundDownloadsEnabled() const {
  9. #if BUILDFLAG(IS_WIN)
  10. return true;
  11. #else
  12. return false;
  13. #endif
  14. }
  15. bool CommandLineConfigPolicy::DeltaUpdatesEnabled() const {
  16. return true;
  17. }
  18. bool CommandLineConfigPolicy::FastUpdate() const {
  19. return false;
  20. }
  21. bool CommandLineConfigPolicy::PingsEnabled() const {
  22. return true;
  23. }
  24. bool CommandLineConfigPolicy::TestRequest() const {
  25. return false;
  26. }
  27. GURL CommandLineConfigPolicy::UrlSourceOverride() const {
  28. return GURL();
  29. }
  30. double CommandLineConfigPolicy::InitialDelay() const {
  31. return 0;
  32. }
  33. } // namespace update_client