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

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

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: chrome/renderer/safe_browsing/phishing_classifier.cc
diff --git a/chrome/renderer/safe_browsing/phishing_classifier.cc b/chrome/renderer/safe_browsing/phishing_classifier.cc
index 704d3c2e2584782b71f43c7dcc8faf971deb3229..088e882fb856804ea11d47be2ca5c47dcdf8760e 100644
--- a/chrome/renderer/safe_browsing/phishing_classifier.cc
+++ b/chrome/renderer/safe_browsing/phishing_classifier.cc
@@ -148,7 +148,7 @@ void PhishingClassifier::CancelPendingClassification() {
}
void PhishingClassifier::DOMExtractionFinished(bool success) {
- shingle_hashes_.reset(new std::set<uint32>);
+ shingle_hashes_.reset(new std::set<uint32_t>);
if (success) {
// Term feature extraction can take awhile, so it runs asynchronously
// in several chunks of work and invokes the callback when finished.
@@ -184,7 +184,7 @@ void PhishingClassifier::TermExtractionFinished(bool success) {
feature->set_name(it->first);
feature->set_value(it->second);
}
- for (std::set<uint32>::const_iterator it = shingle_hashes_->begin();
+ for (std::set<uint32_t>::const_iterator it = shingle_hashes_->begin();
it != shingle_hashes_->end(); ++it) {
verdict.add_shingle_hashes(*it);
}
« no previous file with comments | « chrome/renderer/safe_browsing/phishing_classifier.h ('k') | chrome/renderer/safe_browsing/phishing_classifier_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698