| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index ef1541da661b554817a281eace329fe61d8dec6e..8ea3528a8c82d038a50a811ce13e026e3428cb31 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -1449,7 +1449,7 @@ void Browser::BeforeUnloadFired(WebContents* web_contents,
|
|
|
| bool Browser::ShouldFocusLocationBarByDefault(WebContents* source) {
|
| const content::NavigationEntry* entry =
|
| - source->GetController().GetActiveEntry();
|
| + source->GetController().GetVisibleEntry();
|
| if (entry) {
|
| GURL url = entry->GetURL();
|
| GURL virtual_url = entry->GetVirtualURL();
|
|
|