Index: chrome/browser/sessions/session_types.h |
diff --git a/chrome/browser/sessions/session_types.h b/chrome/browser/sessions/session_types.h |
index b8a23bf27d1d88e78780482296292e989de37ac7..b79ad05acd599023e5752168ed2d7c75730d4a45 100644 |
--- a/chrome/browser/sessions/session_types.h |
+++ b/chrome/browser/sessions/session_types.h |
@@ -130,6 +130,12 @@ struct SessionTab { |
SessionTab(); |
virtual ~SessionTab(); |
+ // Since the current_navigation_index can be larger than the index for number |
+ // of navigations in the current sessions (chrome://newtab is not stored), we |
+ // must perform bounds checking. |
+ // Returns a normalized bounds-checked navigation_index. |
+ int NormalizedNavigationIndex() const; |
+ |
// Unique id of the window. |
SessionID window_id; |