blob: f84122a4a7aad56e30aa158dc180e35e2ab43e80 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/sync/base/command_line_switches.h"
#include "base/command_line.h"
namespace syncer {
bool IsSyncAllowedByFlag() {
return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableSync);
}
} // namespace syncer