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

Issue 2844017: Fix pinned tab link navigations. (Closed)

Created:
10 years, 6 months ago by Evan Stade
Modified:
9 years, 6 months ago
Reviewers:
Peter Kasting, sky
CC:
chromium-reviews, jam+cc_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, ben+cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Fix pinned tab link navigations. This ties up that loose end I mentioned in http://codereview.chromium.org/2747011 (I had put this off because I expected it would require slightly more effort). BUG=29281 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50673

Patch Set 1 #

Total comments: 7

Patch Set 2 : review comments #

Patch Set 3 : fix header #

Patch Set 4 : check render_view_host() #

Patch Set 5 : back to dchecks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -15 lines) Patch
M chrome/browser/tabs/tab_strip_model.cc View 1 2 3 4 10 chunks +20 lines, -13 lines 0 comments Download
M chrome/common/renderer_preferences.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Evan Stade
10 years, 6 months ago (2010-06-23 04:58:45 UTC) #1
sky
http://codereview.chromium.org/2844017/diff/1/2 File chrome/browser/tabs/tab_strip_model.cc (right): http://codereview.chromium.org/2844017/diff/1/2#newcode412 chrome/browser/tabs/tab_strip_model.cc:412: contents->render_view_host()->SyncRendererPrefs(); Do you need to null check the render_view_host? ...
10 years, 6 months ago (2010-06-23 17:44:27 UTC) #2
Peter Kasting
I'm not really qualified to review the critical bit of this. http://codereview.chromium.org/2844017/diff/1/2 File chrome/browser/tabs/tab_strip_model.cc (right): ...
10 years, 6 months ago (2010-06-23 18:21:39 UTC) #3
Evan Stade
http://codereview.chromium.org/2844017/diff/1/2 File chrome/browser/tabs/tab_strip_model.cc (right): http://codereview.chromium.org/2844017/diff/1/2#newcode381 chrome/browser/tabs/tab_strip_model.cc:381: CHECK(ContainsIndex(index)); On 2010/06/23 18:21:40, Peter Kasting wrote: > Do ...
10 years, 6 months ago (2010-06-23 20:18:48 UTC) #4
sky
On Wed, Jun 23, 2010 at 1:18 PM, <estade@chromium.org> wrote: > > http://codereview.chromium.org/2844017/diff/1/2 > File ...
10 years, 6 months ago (2010-06-23 20:35:19 UTC) #5
sky
On Wed, Jun 23, 2010 at 1:35 PM, Scott Violet <sky@chromium.org> wrote: > On Wed, ...
10 years, 6 months ago (2010-06-23 20:35:59 UTC) #6
Evan Stade
I don't know or have a convincing argument for why render_view_host() can't be NULL. Check ...
10 years, 6 months ago (2010-06-23 20:43:24 UTC) #7
sky
LGTM
10 years, 6 months ago (2010-06-23 20:45:24 UTC) #8
Peter Kasting
http://codereview.chromium.org/2844017/diff/1/2 File chrome/browser/tabs/tab_strip_model.cc (right): http://codereview.chromium.org/2844017/diff/1/2#newcode381 chrome/browser/tabs/tab_strip_model.cc:381: CHECK(ContainsIndex(index)); On 2010/06/23 20:18:48, Evan Stade wrote: > On ...
10 years, 6 months ago (2010-06-23 20:47:37 UTC) #9
Evan Stade
http://codereview.chromium.org/2844017/diff/1/2 File chrome/browser/tabs/tab_strip_model.cc (right): http://codereview.chromium.org/2844017/diff/1/2#newcode381 chrome/browser/tabs/tab_strip_model.cc:381: CHECK(ContainsIndex(index)); On 2010/06/23 20:47:37, Peter Kasting wrote: > On ...
10 years, 6 months ago (2010-06-23 21:00:15 UTC) #10
Peter Kasting
10 years, 6 months ago (2010-06-23 21:04:16 UTC) #11
On 2010/06/23 21:00:15, Evan Stade wrote:
> I disagree with the link you posted, in particular,
> 
> "In some cases the consequences of a failed DCHECK may result in a crash. This
> is not necessarily a terrible thing. The crash will be logged, and that will
> result in visibility to the fact that the DCHECK fails in the wild."
> 
> DCHECKs don't execute in the wild, so aside from manual inspection of the
code,
> there's no visibility of the DCHECK's failure in crash reports.

The "manual inspection of the code" part was supposed to be implied by that
text.

The whole section was written quite a while ago by Darin after some discussion
on the team mailing list, so if you think it's wrong, you should probably raise
it on chromium-dev.  It is better to have a policy everyone knows and follows,
so if our current policy isn't optimal we should change it.

Powered by Google App Engine
This is Rietveld 408576698