auto_updater.cc 836 B

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