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

Unified Diff: chrome/browser/sessions/session_restore.cc

Issue 7551012: Use computed index. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_restore.cc
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc
index b6ae167f0e0b42fbe6d0d053cf7249b32925010e..3ed5bfd9ccd6b40b8ba04722b6e1c711a7953440 100644
--- a/chrome/browser/sessions/session_restore.cc
+++ b/chrome/browser/sessions/session_restore.cc
@@ -684,7 +684,7 @@ class SessionRestoreImpl : public NotificationObserver {
static_cast<int>(tab.navigations.size() - 1)));
// Record an app launch, if applicable.
- GURL url = tab.navigations.at(tab.current_navigation_index).virtual_url();
+ GURL url = tab.navigations.at(selected_index).virtual_url();
if (
#if defined(OS_CHROMEOS)
browser->profile()->GetExtensionService() &&
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698