Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Unified Diff: components/policy/core/common/cloud/cloud_policy_client.cc

Issue 2231753002: components: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more call site Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/policy/core/common/cloud/cloud_policy_client.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_client.cc b/components/policy/core/common/cloud/cloud_policy_client.cc
index 4901a1abc5ca44e2633f1996f9fd18ad9313adfa..eaee73ca991b8d4d96dff2cd4e8f6bbaae3befd4 100644
--- a/components/policy/core/common/cloud/cloud_policy_client.cc
+++ b/components/policy/core/common/cloud/cloud_policy_client.cc
@@ -69,7 +69,7 @@ CloudPolicyClient::CloudPolicyClient(
}
CloudPolicyClient::~CloudPolicyClient() {
- STLDeleteValues(&responses_);
+ base::STLDeleteValues(&responses_);
}
void CloudPolicyClient::SetupRegistration(const std::string& dm_token,
@@ -82,7 +82,7 @@ void CloudPolicyClient::SetupRegistration(const std::string& dm_token,
client_id_ = client_id;
request_jobs_.clear();
policy_fetch_request_job_.reset();
- STLDeleteValues(&responses_);
+ base::STLDeleteValues(&responses_);
NotifyRegistrationStateChanged();
}
@@ -520,7 +520,7 @@ void CloudPolicyClient::OnPolicyFetchCompleted(
if (status == DM_STATUS_SUCCESS) {
const em::DevicePolicyResponse& policy_response =
response.policy_response();
- STLDeleteValues(&responses_);
+ base::STLDeleteValues(&responses_);
for (int i = 0; i < policy_response.response_size(); ++i) {
const em::PolicyFetchResponse& response = policy_response.response(i);
em::PolicyData policy_data;
@@ -535,7 +535,7 @@ void CloudPolicyClient::OnPolicyFetchCompleted(
if (policy_data.has_settings_entity_id())
entity_id = policy_data.settings_entity_id();
std::pair<std::string, std::string> key(type, entity_id);
- if (ContainsKey(responses_, key)) {
+ if (base::ContainsKey(responses_, key)) {
LOG(WARNING) << "Duplicate PolicyFetchResponse for type: "
<< type << ", entity: " << entity_id << ", ignoring";
continue;

Powered by Google App Engine
This is Rietveld 408576698