Index: chrome/browser/ui/search/search_tab_helper.cc |
diff --git a/chrome/browser/ui/search/search_tab_helper.cc b/chrome/browser/ui/search/search_tab_helper.cc |
index 3ff3225effe808b617a10aaabdf5f0f290800216..cda38cc8194d9087e472082bc50e4d8a6ff6c862 100644 |
--- a/chrome/browser/ui/search/search_tab_helper.cc |
+++ b/chrome/browser/ui/search/search_tab_helper.cc |
@@ -291,8 +291,10 @@ void SearchTabHelper::DidStartNavigationToPendingEntry( |
// prevents any flickering of the tab title. |
content::NavigationEntry* entry = |
web_contents_->GetController().GetPendingEntry(); |
- if (entry) |
- entry->SetTitle(l10n_util::GetStringUTF16(IDS_NEW_TAB_TITLE)); |
+ if (entry) { |
+ web_contents_->UpdateTitleForEntry( |
+ entry, l10n_util::GetStringUTF16(IDS_NEW_TAB_TITLE)); |
+ } |
} |
} |
@@ -320,7 +322,8 @@ void SearchTabHelper::DidNavigateMainFrame( |
if (entry && entry->GetTitle().empty() && |
(entry->GetVirtualURL() == GURL(chrome::kChromeUINewTabURL) || |
search::NavEntryIsInstantNTP(web_contents_, entry))) { |
- entry->SetTitle(l10n_util::GetStringUTF16(IDS_NEW_TAB_TITLE)); |
+ web_contents_->UpdateTitleForEntry( |
+ entry, l10n_util::GetStringUTF16(IDS_NEW_TAB_TITLE)); |
} |
} |