blob: 278f4383af6f4f4bea23fa675b5d828b924e5562 [file] [log] [blame]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/updater/update_block_check.h"
#include <utility>
#include "base/callback.h"
#include "build/build_config.h"
#include "chrome/updater/update_service.h"
namespace updater {
#if !BUILDFLAG(IS_WIN)
// Linux and macOS don't have mechanisms to detect if a connection is metered.
void ShouldBlockUpdateForMeteredNetwork(
UpdateService::Priority,
base::OnceCallback<void(bool)> callback) {
std::move(callback).Run(false);
}
#endif
} // namespace updater