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

Unified Diff: chrome/browser/sessions/session_types.h

Issue 10832080: Upstream session_backend_android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698