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

Issue 10827055: Move web_contents from SearchViewController to SearchTabHelper (Closed)

Created:
8 years, 5 months ago by dhollowa
Modified:
8 years, 4 months ago
Reviewers:
sky
CC:
chromium-reviews, dhollowa+watch_chromium.org, tfarina
Visibility:
Public.

Description

Move web_contents from SearchViewController to SearchTabHelper Moves the web_contents from SearchViewController to SearchTabHelper. This allows each NTP tab to hold its own state. BUG=133529 TEST=Manual tests, create two new tabs, change one. Observe differences between the two. R=sky@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149332

Patch Set 1 #

Total comments: 6

Patch Set 2 : Lifetime #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -12 lines) Patch
M chrome/browser/ui/search/search_tab_helper.h View 1 4 chunks +17 lines, -5 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 1 8 chunks +33 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/views/search_view_controller.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/search_view_controller.cc View 3 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
dhollowa
8 years, 5 months ago (2012-07-26 23:09:53 UTC) #1
sky
http://codereview.chromium.org/10827055/diff/1/chrome/browser/ui/search/search_tab_helper.cc File chrome/browser/ui/search/search_tab_helper.cc (right): http://codereview.chromium.org/10827055/diff/1/chrome/browser/ui/search/search_tab_helper.cc#newcode53 chrome/browser/ui/search/search_tab_helper.cc:53: ntp_web_contents_.reset(content::WebContents::Create( Shouldn't we destroy this at some point? Otherwise ...
8 years, 4 months ago (2012-07-28 02:27:53 UTC) #2
dhollowa
http://codereview.chromium.org/10827055/diff/1/chrome/browser/ui/search/search_tab_helper.cc File chrome/browser/ui/search/search_tab_helper.cc (right): http://codereview.chromium.org/10827055/diff/1/chrome/browser/ui/search/search_tab_helper.cc#newcode53 chrome/browser/ui/search/search_tab_helper.cc:53: ntp_web_contents_.reset(content::WebContents::Create( Yes, agreed. I've added logic to delete the ...
8 years, 4 months ago (2012-07-31 17:03:46 UTC) #3
sky
LGTM
8 years, 4 months ago (2012-07-31 19:00:10 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dhollowa@chromium.org/10827055/1007
8 years, 4 months ago (2012-07-31 23:21:05 UTC) #5
commit-bot: I haz the power
8 years, 4 months ago (2012-08-01 00:31:54 UTC) #6
Change committed as 149332

Powered by Google App Engine
This is Rietveld 408576698