chromium/components/policy/core/common/policy_migrator.cc

// Copyright 2020 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/policy/core/common/policy_migrator.h"

#include <algorithm>
#include <utility>

#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
#include "components/policy/core/common/policy_logger.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"

namespace policy {

namespace {

void DoNothing(base::Value* val) {}

}  // namespace

PolicyMigrator::~PolicyMigrator() = default;

void PolicyMigrator::CopyPolicyIfUnset(PolicyMap& source,
                                       PolicyMap* dest,
                                       const Migration& migration) {}

PolicyMigrator::Migration::Migration(Migration&&) = default;

PolicyMigrator::Migration::Migration(const char* old_name, const char* new_name)
    :{}

PolicyMigrator::Migration::Migration(const char* old_name,
                                     const char* new_name,
                                     ValueTransform transform)
    :{}

PolicyMigrator::Migration::~Migration() = default;

}  // namespace policy