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

Unified Diff: extensions/browser/api/web_request/web_request_api.cc

Issue 2236443003: extensions: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't add braces 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: extensions/browser/api/web_request/web_request_api.cc
diff --git a/extensions/browser/api/web_request/web_request_api.cc b/extensions/browser/api/web_request/web_request_api.cc
index a03d93123ea91505567cd090140ffe433e65ac1d..b40553245cfeb10e7d40895e21d84146ef16d496 100644
--- a/extensions/browser/api/web_request/web_request_api.cc
+++ b/extensions/browser/api/web_request/web_request_api.cc
@@ -1121,7 +1121,7 @@ bool ExtensionWebRequestEventRouter::AddEventListener(
base::UserMetricsAction("WebView.WebRequest.AddListener"));
}
- if (ContainsKey(listeners_[browser_context][event_name], listener)) {
+ if (base::ContainsKey(listeners_[browser_context][event_name], listener)) {
// This is likely an abuse of the API by a malicious extension.
return false;
}
@@ -1643,7 +1643,7 @@ void ExtensionWebRequestEventRouter::DecrementBlockCount(
listeners_[browser_context][event_name];
for (const auto& listener : listeners) {
- if (!ContainsKey(listener.blocked_requests, request_id))
+ if (!base::ContainsKey(listener.blocked_requests, request_id))
continue;
std::string delegate_info =
l10n_util::GetStringFUTF8(IDS_LOAD_STATE_PARAMETER_EXTENSION,
« no previous file with comments | « extensions/browser/api/vpn_provider/vpn_service.cc ('k') | extensions/browser/app_window/app_window_geometry_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698