Index: chrome/browser/ui/tabs/pinned_tab_codec.cc |
diff --git a/chrome/browser/ui/tabs/pinned_tab_codec.cc b/chrome/browser/ui/tabs/pinned_tab_codec.cc |
index 0140142069e7d8c39e6c2e2e4e25b17a6b3178b5..f8d39b84c033d0b32901f8e34c3352667b9c3a40 100644 |
--- a/chrome/browser/ui/tabs/pinned_tab_codec.cc |
+++ b/chrome/browser/ui/tabs/pinned_tab_codec.cc |
@@ -67,7 +67,7 @@ static void EncodePinnedTab(TabStripModel* model, |
kURL, extensions::AppLaunchInfo::GetFullLaunchURL(extension).spec()); |
values->Append(value.release()); |
} else { |
- NavigationEntry* entry = web_contents->GetController().GetActiveEntry(); |
+ NavigationEntry* entry = web_contents->GetController().GetVisibleEntry(); |
if (!entry && web_contents->GetController().GetEntryCount()) |
entry = web_contents->GetController().GetEntryAtIndex(0); |
if (entry) { |