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

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

Issue 1853283002: Map webRequest filter type to multiple internal ResourceTypes if needed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2982d27f956cea77c18fc8401aac3d476d374671..927d108d1add47779b6b2b2cfc1a011401432863 100644
--- a/extensions/browser/api/web_request/web_request_api.cc
+++ b/extensions/browser/api/web_request/web_request_api.cc
@@ -527,12 +527,10 @@ bool ExtensionWebRequestEventRouter::RequestFilter::InitFromValue(
return false;
for (size_t i = 0; i < types_value->GetSize(); ++i) {
std::string type_str;
- content::ResourceType type;
if (!types_value->GetString(i, &type_str) ||
- !helpers::ParseResourceType(type_str, &type)) {
+ !helpers::ParseResourceType(type_str, &types)) {
return false;
}
- types.push_back(type);
}
} else if (it.key() == "tabId") {
if (!it.value().GetAsInteger(&tab_id))

Powered by Google App Engine
This is Rietveld 408576698