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

Unified Diff: chrome/browser/thumbnails/content_analysis_unittest.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/thumbnails/content_analysis_unittest.cc
diff --git a/chrome/browser/thumbnails/content_analysis_unittest.cc b/chrome/browser/thumbnails/content_analysis_unittest.cc
index 87ee82d1d765351bf1280b622792611b68e050cb..23161efd4e50708b015f1b5bd4ed26840b925a30 100644
--- a/chrome/browser/thumbnails/content_analysis_unittest.cc
+++ b/chrome/browser/thumbnails/content_analysis_unittest.cc
@@ -4,6 +4,9 @@
#include "chrome/browser/thumbnails/content_analysis.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <algorithm>
#include <cmath>
#include <cstdlib>
@@ -35,8 +38,8 @@ unsigned long ImagePixelSum(const SkBitmap& bitmap, const gfx::Rect& rect) {
DCHECK_EQ(kAlpha_8_SkColorType, bitmap.colorType());
unsigned long total = 0;
for (int r = rect.y(); r < rect.bottom(); ++r) {
- const uint8* row_data = static_cast<const uint8*>(
- bitmap.getPixels()) + r * bitmap.rowBytes();
+ const uint8_t* row_data =
+ static_cast<const uint8_t*>(bitmap.getPixels()) + r * bitmap.rowBytes();
for (int c = rect.x(); c < rect.right(); ++c)
total += row_data[c];
}
« no previous file with comments | « chrome/browser/thumbnails/content_analysis.cc ('k') | chrome/browser/thumbnails/content_based_thumbnailing_algorithm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698