blob: 064326ef5273ceab6cce5b1552aaf092b36db2b4 [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 <string>
#include "base/command_line.h"
namespace syncer {
bool IsSyncAllowedByFlag() {
return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableSync);
}
} // namespace syncer