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

Unified Diff: Source/core/inspector/InspectorResourceAgent.cpp

Issue 1318333002: [DevTools] Fix variable shadowing in InspectorResourceAgent. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorResourceAgent.cpp
diff --git a/Source/core/inspector/InspectorResourceAgent.cpp b/Source/core/inspector/InspectorResourceAgent.cpp
index a3e6a61d79b7fc9ed8f76585717a0b5ae1a4838d..ba24da87cd33f0a85d30d98bcea640a0c018e6a8 100644
--- a/Source/core/inspector/InspectorResourceAgent.cpp
+++ b/Source/core/inspector/InspectorResourceAgent.cpp
@@ -371,8 +371,8 @@ bool InspectorResourceAgent::shouldBlockRequest(LocalFrame* frame, const Resourc
{
String url = request.url().string();
RefPtr<JSONObject> blockedURLs = m_state->getObject(ResourceAgentState::blockedURLs);
- for (const auto& blocked : *blockedURLs) {
- if (url.contains(blocked.key)) {
+ for (const auto& entry : *blockedURLs) {
+ if (url.contains(entry.key)) {
unsigned long identifier = createUniqueIdentifier();
willSendRequestInternal(frame, identifier, loader, request, ResourceResponse(), initiatorInfo);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698