summaryrefslogtreecommitdiffstats
path: root/chrome/browser/thumbnails/content_analysis_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/thumbnails/content_analysis_unittest.cc')
-rw-r--r--chrome/browser/thumbnails/content_analysis_unittest.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/thumbnails/content_analysis_unittest.cc b/chrome/browser/thumbnails/content_analysis_unittest.cc
index 87ee82d..23161efd 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];
}