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

Issue 2757863002: SearchTabHelper: Find browser/window instead of having them passed in (Closed)

Created:
3 years, 9 months ago by Marc Treib
Modified:
3 years, 9 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, donnd+watch_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

SearchTabHelper: Find browser/window instead of having them passed in This fixes a crash introduced in https://codereview.chromium.org/2739943005, and it generally seems much less fragile: No need to rely on magic callbacks getting called in just the right places. BUG=627747, 702505 Review-Url: https://codereview.chromium.org/2757863002 Cr-Commit-Position: refs/heads/master@{#458366} Committed: https://chromium.googlesource.com/chromium/src/+/f2d087b2e71a7f87b4dd71ebf424820488459ca8

Patch Set 1 #

Total comments: 2

Patch Set 2 : review #

Total comments: 4

Patch Set 3 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -36 lines) Patch
M chrome/browser/ui/browser.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 chunks +47 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.h View 1 4 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 1 8 chunks +46 lines, -27 lines 0 comments Download

Messages

Total messages: 23 (16 generated)
Marc Treib
PTAL!
3 years, 9 months ago (2017-03-17 12:32:15 UTC) #6
Peter Kasting
LGTM Is it possible to write a test that would have failed with the previous ...
3 years, 9 months ago (2017-03-17 21:16:13 UTC) #7
Marc Treib
I've added a test, PTAL. I've checked that the test crashes without the fix, but ...
3 years, 9 months ago (2017-03-20 14:52:31 UTC) #10
Peter Kasting
Still LGTM https://codereview.chromium.org/2757863002/diff/20001/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/2757863002/diff/20001/chrome/browser/ui/browser_browsertest.cc#newcode1525 chrome/browser/ui/browser_browsertest.cc:1525: GURL ntp_url(search::GetNewTabPageURL(browser()->profile())); Nit: Prefer = to () ...
3 years, 9 months ago (2017-03-20 20:11:10 UTC) #13
Marc Treib
Thanks! Nits addressed. https://codereview.chromium.org/2757863002/diff/20001/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/2757863002/diff/20001/chrome/browser/ui/browser_browsertest.cc#newcode1525 chrome/browser/ui/browser_browsertest.cc:1525: GURL ntp_url(search::GetNewTabPageURL(browser()->profile())); On 2017/03/20 20:11:10, Peter ...
3 years, 9 months ago (2017-03-21 08:49:08 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2757863002/40001
3 years, 9 months ago (2017-03-21 09:36:03 UTC) #20
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 10:36:23 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/f2d087b2e71a7f87b4dd71ebf424...

Powered by Google App Engine
This is Rietveld 408576698