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

Unified Diff: chrome/browser/android/history_report/delta_file_commons.cc

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (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/browser/android/history_report/delta_file_commons.cc
diff --git a/chrome/browser/android/history_report/delta_file_commons.cc b/chrome/browser/android/history_report/delta_file_commons.cc
index 027f82d9c7c84d99b36360105cea81dfb6560b8e..d7d6cbaabd732914880b698454d1b7402fc7d65c 100644
--- a/chrome/browser/android/history_report/delta_file_commons.cc
+++ b/chrome/browser/android/history_report/delta_file_commons.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/android/history_report/delta_file_commons.h"
+#include <stddef.h>
+
#include <iomanip>
#include "base/strings/string_number_conversions.h"
@@ -52,7 +54,7 @@ DeltaFileEntryWithData::DeltaFileEntryWithData(DeltaFileEntry entry)
DeltaFileEntryWithData::~DeltaFileEntryWithData() {}
-int64 DeltaFileEntryWithData::SeqNo() const {
+int64_t DeltaFileEntryWithData::SeqNo() const {
return entry_.seq_no();
}
@@ -86,7 +88,7 @@ std::string DeltaFileEntryWithData::UrlToId(const std::string& url) {
id << std::setfill('0') << std::setw(kUrlLengthWidth) << url.size();
// 2. SHA-256 of URL.
- uint8 hash[kSHA256ByteSize];
+ uint8_t hash[kSHA256ByteSize];
crypto::SHA256HashString(url, hash, sizeof(hash));
id << base::HexEncode(hash, sizeof(hash));
@@ -112,9 +114,9 @@ base::string16 DeltaFileEntryWithData::Title() const {
return data_.title();
}
-int32 DeltaFileEntryWithData::Score() const {
+int32_t DeltaFileEntryWithData::Score() const {
if (!Valid()) return 0;
- int32 score = data_.visit_count() + data_.typed_count();
+ int32_t score = data_.visit_count() + data_.typed_count();
if (is_bookmark_) score = (score + 1) * kBookmarkScoreBonusMultiplier;
return score;
}

Powered by Google App Engine
This is Rietveld 408576698