| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index dab977c681456a56a9619729ec8bb6fbe5123e59..4702bda264f5ca9b8c9d706c12a10e3b6626a2dc 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -1446,7 +1446,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();
|
|
|