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

Issue 2739943005: Cleanup: Remove SearchTabHelperDelegate (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/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup: Remove SearchTabHelperDelegate Its one remaining member, GetOmniboxView, can be replaced easily by telling the SearchTabHelper when its tab gets attached to a new window (i.e. Browser::TabInsertedAt), at which point it can grab the OmniboxView* itself. This also correctly handles the case where a tab is dragged between windows. BUG=627747

Patch Set 1 #

Total comments: 4

Patch Set 2 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -92 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser.h View 3 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 3 chunks +3 lines, -11 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.h View 1 4 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 1 9 chunks +27 lines, -31 lines 0 comments Download
D chrome/browser/ui/search/search_tab_helper_delegate.h View 1 chunk +0 lines, -21 lines 0 comments Download
D chrome/browser/ui/search/search_tab_helper_delegate.cc View 1 chunk +0 lines, -12 lines 0 comments Download

Messages

Total messages: 21 (16 generated)
Marc Treib
This turned out to Just Work :) PTAL!
3 years, 9 months ago (2017-03-10 08:49:08 UTC) #7
Peter Kasting
LGTM https://codereview.chromium.org/2739943005/diff/1/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/2739943005/diff/1/chrome/browser/ui/browser.cc#newcode970 chrome/browser/ui/browser.cc:970: SearchTabHelper::FromWebContents(contents); Nit: Or could inline into next line ...
3 years, 9 months ago (2017-03-10 10:20:00 UTC) #8
Marc Treib
https://codereview.chromium.org/2739943005/diff/1/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/2739943005/diff/1/chrome/browser/ui/browser.cc#newcode970 chrome/browser/ui/browser.cc:970: SearchTabHelper::FromWebContents(contents); On 2017/03/10 10:19:57, Peter Kasting wrote: > Nit: ...
3 years, 9 months ago (2017-03-10 11:30:03 UTC) #9
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/2739943005/20001
3 years, 9 months ago (2017-03-10 12:26:48 UTC) #18
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 12:36:04 UTC) #21
Prior attempt to commit was detected, but we were not able to check whether the
issue was successfully committed. Please check Git history manually and re-check
CQ or close this issue as needed.

Powered by Google App Engine
This is Rietveld 408576698