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

Unified Diff: chrome/renderer/safe_browsing/threat_dom_details.cc

Issue 2760803003: Change some ints to size_t to fix warning on win64 builds (Closed)
Patch Set: Created 3 years, 9 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: chrome/renderer/safe_browsing/threat_dom_details.cc
diff --git a/chrome/renderer/safe_browsing/threat_dom_details.cc b/chrome/renderer/safe_browsing/threat_dom_details.cc
index 7d715f15acd6d0be4fe7e7a3e0d2ac8030669f2b..777167b56b53097d5aa1d3573746b8cac147b4d5 100644
--- a/chrome/renderer/safe_browsing/threat_dom_details.cc
+++ b/chrome/renderer/safe_browsing/threat_dom_details.cc
@@ -32,7 +32,7 @@ namespace safe_browsing {
// copied into the map when inserting new elements.
// The values are indices into the resource vector, and are used to retrieve IPC
// messages generated by ThreatDOMDetails.
-using ElementToNodeMap = std::map<blink::WebNode, int>;
+using ElementToNodeMap = std::map<blink::WebNode, size_t>;
// This Feature specifies which non-resource HTML Elements to collect based on
// their tag and attributes. It's a single param containing a comma-separated
@@ -171,7 +171,7 @@ void HandleElement(
// Update the ID mapping. First generate the ID for the current node.
// Then, if its parent is available, set the current node's parent ID, and
// also update the parent's children with the current node's ID.
- const int child_id = element_to_node_map->size() + 1;
+ const size_t child_id = element_to_node_map->size() + 1;
child_node.node_id = child_id;
blink::WebNode cur_parent_element = element.parentNode();
while (!cur_parent_element.isNull()) {
« 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