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

Issue 1372133002: Don't rely on |entry| being null in initial title logic. (Closed)

Created:
5 years, 2 months ago by Charlie Reis
Modified:
5 years, 2 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't rely on |entry| being null in initial title logic. This is a bit of cleanup and extra test coverage before introducing a NavigationEntry for the initial blank page. BUG=524208 TEST=No behavior change. Committed: https://crrev.com/072b61ff751b6a5d73c5c7680d1b342e488d5c2b Cr-Commit-Position: refs/heads/master@{#351134}

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -15 lines) Patch
M content/browser/web_contents/web_contents_impl.cc View 1 chunk +13 lines, -15 lines 5 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Charlie Reis
Avi, can you take a look? This was independent of the rest of the changes ...
5 years, 2 months ago (2015-09-28 18:18:44 UTC) #2
Avi (use Gerrit)
lgtm https://codereview.chromium.org/1372133002/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (left): https://codereview.chromium.org/1372133002/diff/1/content/browser/web_contents/web_contents_impl.cc#oldcode959 content/browser/web_contents/web_contents_impl.cc:959: if (entry || I'm not sure what this ...
5 years, 2 months ago (2015-09-28 19:11:39 UTC) #3
Charlie Reis
https://codereview.chromium.org/1372133002/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (left): https://codereview.chromium.org/1372133002/diff/1/content/browser/web_contents/web_contents_impl.cc#oldcode959 content/browser/web_contents/web_contents_impl.cc:959: if (entry || On 2015/09/28 19:11:39, Avi wrote: > ...
5 years, 2 months ago (2015-09-28 19:21:41 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372133002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372133002/1
5 years, 2 months ago (2015-09-28 19:23:06 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 2 months ago (2015-09-28 20:52:33 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/072b61ff751b6a5d73c5c7680d1b342e488d5c2b Cr-Commit-Position: refs/heads/master@{#351134}
5 years, 2 months ago (2015-09-28 20:53:43 UTC) #8
Avi (use Gerrit)
On 2015/09/28 19:21:41, Charlie Reis wrote: > One of many fun cases I encountered in ...
5 years, 2 months ago (2015-09-28 20:56:31 UTC) #9
Charlie Reis
On 2015/09/28 20:56:31, Avi wrote: > On 2015/09/28 19:21:41, Charlie Reis wrote: > > One ...
5 years, 2 months ago (2015-09-28 21:08:51 UTC) #10
Avi (use Gerrit)
5 years, 2 months ago (2015-09-28 21:12:20 UTC) #11
Message was sent while issue was closed.
On 2015/09/28 21:08:51, Charlie Reis wrote:
> On 2015/09/28 20:56:31, Avi wrote:
> > On 2015/09/28 19:21:41, Charlie Reis wrote:
> > > One of many fun cases I encountered in the epic https://crbug.com/9682.
> > 
> > Jeez. Can you at least put explanations like that in the comments? It's not
> > immediately obvious from the code how that could happen.
> 
> The explanation was there already; I just restated it to answer your question.

> The old code said:
> // 1. There's already a committed entry for an initial navigation, in which
> //    case we are doing a history navigation in a new tab (e.g., Ctrl+Back).	
> 
> The new code says:
> // 2. The user is doing a history navigation in a new tab (e.g., Ctrl+Back),
> //    which case there is a pending entry index other than -1.
> 
> I can try to add more context and a breadcrumb to 9682 in the final version,
if
> you want.

Gah. I missed that, complained to you, and now you point out to me what I missed
:) Never mind.

Powered by Google App Engine
This is Rietveld 408576698