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

Issue 78443005: New Tab: fix tab title flickering. (Closed)

Created:
7 years, 1 month ago by samarth
Modified:
7 years ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, Jered
Visibility:
Public.

Description

New Tab: fix tab title flickering. The fix requires two changes: (1) Change the implementation of WebContents::GetTitle() to use a non-empty title on a pending entry for "initial navigations". (2) Set the title on pending NTP entries as soon as they're created. BUG=322099 TESTED=manual, per bug report Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237180

Patch Set 1 #

Total comments: 5

Patch Set 2 : Use pending entry. #

Total comments: 17

Patch Set 3 : Clean up change. #

Total comments: 4

Patch Set 4 : Address comment + add tests. #

Patch Set 5 : Rebase. #

Patch Set 6 : Try again. #

Total comments: 6

Patch Set 7 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -5 lines) Patch
M chrome/browser/ui/search/search_tab_helper.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper_unittest.cc View 1 2 3 2 chunks +41 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 1 chunk +16 lines, -5 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
samarth
PTAL. Thanks, Samarth
7 years, 1 month ago (2013-11-21 18:58:59 UTC) #1
sky
+creis https://codereview.chromium.org/78443005/diff/1/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): https://codereview.chromium.org/78443005/diff/1/chrome/browser/ui/browser_navigator.cc#newcode276 chrome/browser/ui/browser_navigator.cc:276: // For Instant Extended NTPs, add a transient ...
7 years, 1 month ago (2013-11-21 23:16:31 UTC) #2
samarth
https://codereview.chromium.org/78443005/diff/1/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): https://codereview.chromium.org/78443005/diff/1/chrome/browser/ui/browser_navigator.cc#newcode276 chrome/browser/ui/browser_navigator.cc:276: // For Instant Extended NTPs, add a transient entry ...
7 years, 1 month ago (2013-11-21 23:20:58 UTC) #3
Charlie Reis
https://codereview.chromium.org/78443005/diff/1/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): https://codereview.chromium.org/78443005/diff/1/chrome/browser/ui/browser_navigator.cc#newcode276 chrome/browser/ui/browser_navigator.cc:276: // For Instant Extended NTPs, add a transient entry ...
7 years, 1 month ago (2013-11-21 23:23:57 UTC) #4
samarth
Thanks, Samarth https://codereview.chromium.org/78443005/diff/1/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): https://codereview.chromium.org/78443005/diff/1/chrome/browser/ui/browser_navigator.cc#newcode276 chrome/browser/ui/browser_navigator.cc:276: // For Instant Extended NTPs, add a ...
7 years, 1 month ago (2013-11-21 23:44:06 UTC) #5
samarth
https://codereview.chromium.org/78443005/diff/1/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): https://codereview.chromium.org/78443005/diff/1/chrome/browser/ui/browser_navigator.cc#newcode276 chrome/browser/ui/browser_navigator.cc:276: // For Instant Extended NTPs, add a transient entry ...
7 years, 1 month ago (2013-11-22 00:29:03 UTC) #6
Charlie Reis
https://codereview.chromium.org/78443005/diff/90001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/78443005/diff/90001/content/browser/web_contents/web_contents_impl.cc#newcode747 content/browser/web_contents/web_contents_impl.cc:747: const string16& title = our_web_ui->GetOverriddenTitle(); Shouldn't we be using ...
7 years, 1 month ago (2013-11-22 01:47:45 UTC) #7
samarth
https://codereview.chromium.org/78443005/diff/90001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/78443005/diff/90001/content/browser/web_contents/web_contents_impl.cc#newcode747 content/browser/web_contents/web_contents_impl.cc:747: const string16& title = our_web_ui->GetOverriddenTitle(); On 2013/11/22 01:47:45, creis ...
7 years, 1 month ago (2013-11-22 17:25:54 UTC) #8
Charlie Reis
https://codereview.chromium.org/78443005/diff/90001/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): https://codereview.chromium.org/78443005/diff/90001/chrome/browser/ui/browser_navigator.cc#newcode285 chrome/browser/ui/browser_navigator.cc:285: if (chrome::IsNTPURL( Hmm, this call happens for almost every ...
7 years, 1 month ago (2013-11-22 18:54:17 UTC) #9
Charlie Reis
https://codereview.chromium.org/78443005/diff/90001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/78443005/diff/90001/content/browser/web_contents/web_contents_impl.cc#newcode747 content/browser/web_contents/web_contents_impl.cc:747: const string16& title = our_web_ui->GetOverriddenTitle(); On 2013/11/22 17:25:54, samarth ...
7 years, 1 month ago (2013-11-22 19:03:00 UTC) #10
samarth
https://codereview.chromium.org/78443005/diff/90001/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): https://codereview.chromium.org/78443005/diff/90001/chrome/browser/ui/browser_navigator.cc#newcode285 chrome/browser/ui/browser_navigator.cc:285: if (chrome::IsNTPURL( On 2013/11/22 18:54:18, creis wrote: > Hmm, ...
7 years, 1 month ago (2013-11-22 20:03:18 UTC) #11
Charlie Reis
https://codereview.chromium.org/78443005/diff/90001/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): https://codereview.chromium.org/78443005/diff/90001/chrome/browser/ui/browser_navigator.cc#newcode285 chrome/browser/ui/browser_navigator.cc:285: if (chrome::IsNTPURL( On 2013/11/22 20:03:19, samarth wrote: > On ...
7 years, 1 month ago (2013-11-22 20:33:47 UTC) #12
samarth
Thanks, PTAL. I'll see if it's possible to write a good unit test for this, ...
7 years, 1 month ago (2013-11-22 21:54:41 UTC) #13
Charlie Reis
On 2013/11/22 21:54:41, samarth wrote: > I'll see if it's possible to write a good ...
7 years, 1 month ago (2013-11-22 23:19:12 UTC) #14
samarth
Added tests. Thanks, Samarth https://codereview.chromium.org/78443005/diff/150002/chrome/browser/ui/search/search_tab_helper.cc File chrome/browser/ui/search/search_tab_helper.cc (right): https://codereview.chromium.org/78443005/diff/150002/chrome/browser/ui/search/search_tab_helper.cc#newcode229 chrome/browser/ui/search/search_tab_helper.cc:229: if (chrome::IsNTPURL(url, profile())) { On ...
7 years ago (2013-11-25 15:32:13 UTC) #15
Charlie Reis
Thanks! Looks like the upload didn't work, though, since I can't review the patch. Can ...
7 years ago (2013-11-25 17:56:05 UTC) #16
samarth
Strange, try now?
7 years ago (2013-11-25 17:57:16 UTC) #17
Charlie Reis
Thanks, worked this time. Sorry about the name change to "NavigateToPendingEntry" in the meantime. LGTM ...
7 years ago (2013-11-25 18:17:46 UTC) #18
samarth
Thanks, addressed all comments. sky@: did you want to take another look? Thanks, Samarth https://codereview.chromium.org/78443005/diff/300001/chrome/browser/ui/search/search_tab_helper.cc ...
7 years ago (2013-11-25 18:40:50 UTC) #19
sky
creis is an owner in content and you're an OWNER in c/b/u/s, which means you ...
7 years ago (2013-11-25 21:43:10 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/samarth@chromium.org/78443005/310001
7 years ago (2013-11-25 21:47:43 UTC) #21
commit-bot: I haz the power
7 years ago (2013-11-25 23:49:48 UTC) #22
Message was sent while issue was closed.
Change committed as 237180

Powered by Google App Engine
This is Rietveld 408576698