#include "components/sync_preferences/preferences_merge_helper.h"
#include "base/check_is_test.h"
#include "base/containers/contains.h"
#include "base/notreached.h"
#include "components/sync_preferences/pref_model_associator_client.h"
#include "components/sync_preferences/syncable_prefs_database.h"
namespace sync_preferences::helper {
namespace {
MergeBehavior GetMergeBehavior(const PrefModelAssociatorClient& client,
std::string_view pref_name) { … }
}
base::Value::List MergeListValues(const base::Value::List& local_value,
const base::Value::List& server_value) { … }
base::Value::Dict MergeDictionaryValues(const base::Value::Dict& local_value,
const base::Value::Dict& server_value) { … }
base::Value MergePreference(const PrefModelAssociatorClient* client,
std::string_view pref_name,
const base::Value& local_value,
const base::Value& server_value) { … }
std::pair<base::Value::Dict, base::Value::Dict> UnmergeDictionaryValues(
base::Value::Dict new_dict,
const base::Value::Dict& original_local_dict,
const base::Value::Dict& original_account_dict) { … }
}