auto_updater.cc 868 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright (c) 2013 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #include "shell/browser/auto_updater.h"
  5. #include "build/build_config.h"
  6. namespace auto_updater {
  7. Delegate* AutoUpdater::delegate_ = nullptr;
  8. Delegate* AutoUpdater::GetDelegate() {
  9. return delegate_;
  10. }
  11. void AutoUpdater::SetDelegate(Delegate* delegate) {
  12. delegate_ = delegate;
  13. }
  14. #if !BUILDFLAG(IS_MAC) || IS_MAS_BUILD()
  15. std::string AutoUpdater::GetFeedURL() {
  16. return "";
  17. }
  18. void AutoUpdater::SetFeedURL(gin::Arguments* args) {}
  19. void AutoUpdater::CheckForUpdates() {}
  20. void AutoUpdater::QuitAndInstall() {}
  21. bool AutoUpdater::IsVersionAllowedForUpdate(const std::string& current_version,
  22. const std::string& target_version) {
  23. return false;
  24. }
  25. #endif
  26. } // namespace auto_updater