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

Unified Diff: chrome/browser/supervised_user/supervised_user_site_list.cc

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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/supervised_user/supervised_user_site_list.cc
diff --git a/chrome/browser/supervised_user/supervised_user_site_list.cc b/chrome/browser/supervised_user/supervised_user_site_list.cc
index 37862e7dac01ad12d926df19c5cddc126ed24d24..db18d522de771285eb122a947c74aecb99a3a9da 100644
--- a/chrome/browser/supervised_user/supervised_user_site_list.cc
+++ b/chrome/browser/supervised_user/supervised_user_site_list.cc
@@ -48,7 +48,7 @@ SupervisedUserSiteList::HostnameHash::HostnameHash(
}
SupervisedUserSiteList::HostnameHash::HostnameHash(
- const std::vector<uint8>& bytes) {
+ const std::vector<uint8_t>& bytes) {
CHECK_GE(bytes.size(), base::kSHA1Length);
std::copy(bytes.begin(), bytes.end(), bytes_.begin());
}
@@ -98,7 +98,7 @@ SupervisedUserSiteList::SupervisedUserSiteList(
for (const base::Value* entry : *hostname_hashes) {
// |hash_str| should be a hex-encoded SHA1 hash string.
std::string hash_str;
- std::vector<uint8> hash_bytes;
+ std::vector<uint8_t> hash_bytes;
if (!entry->GetAsString(&hash_str) ||
hash_str.size() != 2 * base::kSHA1Length ||
!base::HexStringToBytes(hash_str, &hash_bytes)) {
« no previous file with comments | « chrome/browser/supervised_user/supervised_user_site_list.h ('k') | chrome/browser/supervised_user/supervised_user_theme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698