auto_updater.cc 895 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. #include "electron/mas.h"
  7. namespace auto_updater {
  8. Delegate* AutoUpdater::delegate_ = nullptr;
  9. Delegate* AutoUpdater::GetDelegate() {
  10. return delegate_;
  11. }
  12. void AutoUpdater::SetDelegate(Delegate* delegate) {
  13. delegate_ = delegate;
  14. }
  15. #if !BUILDFLAG(IS_MAC) || IS_MAS_BUILD()
  16. std::string AutoUpdater::GetFeedURL() {
  17. return "";
  18. }
  19. void AutoUpdater::SetFeedURL(gin::Arguments* args) {}
  20. void AutoUpdater::CheckForUpdates() {}
  21. void AutoUpdater::QuitAndInstall() {}
  22. bool AutoUpdater::IsVersionAllowedForUpdate(const std::string& current_version,
  23. const std::string& target_version) {
  24. return false;
  25. }
  26. #endif
  27. } // namespace auto_updater