Commit 8c2f7d15 authored by Aya ElAttar's avatar Aya ElAttar Committed by Commit Bot

Remove PolicyMap::Set old version

Bug: 1092469
Change-Id: I4a405c8642bbb78a59bd3681178e372cc2a56cc0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2348772
Commit-Queue: Aya Elsayed <ayaelattar@chromium.org>
Reviewed-by: default avatarMaksim Ivanov <emaxx@chromium.org>
Cr-Commit-Position: refs/heads/master@{#797325}
parent 3e53a395
...@@ -212,19 +212,6 @@ PolicyMap::Entry* PolicyMap::GetMutableUntrusted(const std::string& policy) { ...@@ -212,19 +212,6 @@ PolicyMap::Entry* PolicyMap::GetMutableUntrusted(const std::string& policy) {
return entry != map_.end() ? &entry->second : nullptr; return entry != map_.end() ? &entry->second : nullptr;
} }
void PolicyMap::Set(
const std::string& policy,
PolicyLevel level,
PolicyScope scope,
PolicySource source,
std::unique_ptr<base::Value> value,
std::unique_ptr<ExternalDataFetcher> external_data_fetcher) {
Entry entry(level, scope, source,
value ? base::make_optional(std::move(*value)) : base::nullopt,
std::move(external_data_fetcher));
Set(policy, std::move(entry));
}
void PolicyMap::Set( void PolicyMap::Set(
const std::string& policy, const std::string& policy,
PolicyLevel level, PolicyLevel level,
......
...@@ -143,16 +143,6 @@ class POLICY_EXPORT PolicyMap { ...@@ -143,16 +143,6 @@ class POLICY_EXPORT PolicyMap {
// Overwrites any existing information stored in the map for the key |policy|. // Overwrites any existing information stored in the map for the key |policy|.
// Resets the error for that policy to the empty string. // Resets the error for that policy to the empty string.
// DEPRECATED: Use the other version that takes base::Optional<base::Value>
// below.
// TODO(crbug.com/1092469): Migrate the existing usages and delete this
// method.
void Set(const std::string& policy,
PolicyLevel level,
PolicyScope scope,
PolicySource source,
std::unique_ptr<base::Value> value,
std::unique_ptr<ExternalDataFetcher> external_data_fetcher);
void Set(const std::string& policy, void Set(const std::string& policy,
PolicyLevel level, PolicyLevel level,
PolicyScope scope, PolicyScope scope,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment