summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/history_view.cc')
-rw-r--r--chrome/browser/history_view.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/chrome/browser/history_view.cc b/chrome/browser/history_view.cc
index 4cec25f..c382226 100644
--- a/chrome/browser/history_view.cc
+++ b/chrome/browser/history_view.cc
@@ -122,8 +122,8 @@ class SnippetRenderer : public views::View {
int x,
int y,
Snippet::MatchPositions::const_iterator match_iter,
- int start,
- int end);
+ size_t start,
+ size_t end);
DISALLOW_EVIL_CONSTRUCTORS(SnippetRenderer);
};
@@ -179,9 +179,12 @@ void SnippetRenderer::Paint(ChromeCanvas* canvas) {
}
int SnippetRenderer::ProcessRun(
- ChromeCanvas* canvas, int x, int y,
+ ChromeCanvas* canvas,
+ int x,
+ int y,
Snippet::MatchPositions::const_iterator match_iter,
- int start, int end) {
+ size_t start,
+ size_t end) {
int total_width = 0;
while (start < end) {
@@ -195,7 +198,7 @@ int SnippetRenderer::ProcessRun(
// Determine the next substring to process by examining whether
// we're before a match or within a match.
ChromeFont* font = &text_font_;
- int next = end;
+ size_t next = end;
if (match_iter != snippet_.matches().end()) {
if (match_iter->first > start) {
// We're in a plain region.