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

Side by Side Diff: components/sync_sessions/revisit/offset_tab_matcher.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync_sessions/revisit/offset_tab_matcher.h" 5 #include "components/sync_sessions/revisit/offset_tab_matcher.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 10
9 #include "base/metrics/histogram_macros.h" 11 #include "base/metrics/histogram_macros.h"
10 #include "base/metrics/sparse_histogram.h" 12 #include "base/metrics/sparse_histogram.h"
11 #include "components/sessions/core/serialized_navigation_entry.h" 13 #include "components/sessions/core/serialized_navigation_entry.h"
12 #include "components/sessions/core/session_types.h" 14 #include "components/sessions/core/session_types.h"
13 15
14 namespace sync_sessions { 16 namespace sync_sessions {
15 17
16 namespace { 18 namespace {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 transition, 73 transition,
72 PageVisitObserver::kTransitionTypeLast); 74 PageVisitObserver::kTransitionTypeLast);
73 } 75 }
74 } 76 }
75 77
76 int OffsetTabMatcher::Clamp(const int input, const int lower, const int upper) { 78 int OffsetTabMatcher::Clamp(const int input, const int lower, const int upper) {
77 return std::max(lower, std::min(upper, input)); 79 return std::max(lower, std::min(upper, input));
78 } 80 }
79 81
80 } // namespace sync_sessions 82 } // namespace sync_sessions
OLDNEW
« no previous file with comments | « components/sync_sessions/revisit/offset_tab_matcher.h ('k') | components/sync_sessions/revisit/page_revisit_broadcaster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698