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

Unified Diff: content/browser/frame_host/navigation_controller_impl_unittest.cc

Issue 2086423005: Using WebContents::UpdateTitleForEntry() instead of NavigationEntry::SetTitle() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improving comment and removing the NOTREACHED. Created 4 years, 5 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
Index: content/browser/frame_host/navigation_controller_impl_unittest.cc
diff --git a/content/browser/frame_host/navigation_controller_impl_unittest.cc b/content/browser/frame_host/navigation_controller_impl_unittest.cc
index a2c74bd9624394f71107dd82920e459a1f0ea8ba..1655c5f0b280b53d230d3a33f62ec5588b191271 100644
--- a/content/browser/frame_host/navigation_controller_impl_unittest.cc
+++ b/content/browser/frame_host/navigation_controller_impl_unittest.cc
@@ -5039,7 +5039,8 @@ TEST_F(NavigationControllerTest, PushStateUpdatesTitleAndFavicon) {
FaviconStatus favicon;
favicon.valid = true;
favicon.url = GURL("http://foo/favicon.ico");
- controller().GetLastCommittedEntry()->SetTitle(title);
+ contents()->UpdateTitleForEntry(
+ controller().GetLastCommittedEntry(), title);
controller().GetLastCommittedEntry()->GetFavicon() = favicon;
// history.pushState() is called.

Powered by Google App Engine
This is Rietveld 408576698