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

Unified Diff: components/sessions/core/tab_restore_service_helper.cc

Issue 1309323004: Create a NavigationEntry for the initial blank page. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GetEntryCount, more tests Created 5 years, 2 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 | « components/sessions/core/live_tab.h ('k') | components/sessions/ios/ios_live_tab.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sessions/core/tab_restore_service_helper.cc
diff --git a/components/sessions/core/tab_restore_service_helper.cc b/components/sessions/core/tab_restore_service_helper.cc
index e21968671100a0448bc0ba2912e466f2b2e4b2df..07651f9a03c6e70e2307e0a5c5dd593db535252d 100644
--- a/components/sessions/core/tab_restore_service_helper.cc
+++ b/components/sessions/core/tab_restore_service_helper.cc
@@ -361,7 +361,7 @@ void TabRestoreServiceHelper::PopulateTab(Tab* tab,
LiveTab* live_tab) {
const int pending_index = live_tab->GetPendingEntryIndex();
int entry_count =
- live_tab->IsInitialNavigation() ? 0 : live_tab->GetEntryCount();
+ live_tab->IsInitialBlankNavigation() ? 0 : live_tab->GetEntryCount();
if (entry_count == 0 && pending_index == 0)
entry_count++;
tab->navigations.resize(static_cast<int>(entry_count));
« no previous file with comments | « components/sessions/core/live_tab.h ('k') | components/sessions/ios/ios_live_tab.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698