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

Issue 11233076: Fix spurious visibility events when committing Instant. (Closed)

Created:
8 years, 1 month ago by sreeram
Modified:
8 years, 1 month ago
CC:
chromium-reviews, tfarina, samarth, sreeram, gideonwald, dominich, David Black, Jered, Shishir
Visibility:
Public.

Description

Fix spurious visibility events when committing Instant. This CL fixes things so that we consistently handle the Instant preview when committing, on all platforms. On a commit, whether on the current tab or a new tab, we'll never hide the preview. R=sky@chromium.org BUG=none TEST=none; no functionality change. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164350

Patch Set 1 #

Total comments: 6

Patch Set 2 : Added comment for delayed destroy #

Patch Set 3 : Remove #ifdef AURA #

Patch Set 4 : Unify into ActiveTabChanged #

Patch Set 5 : Rebaseline #

Patch Set 6 : Rebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -182 lines) Patch
M chrome/browser/instant/instant_browsertest.cc View 1 2 3 4 36 chunks +151 lines, -50 lines 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 3 4 5 6 chunks +21 lines, -18 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 2 chunks +1 line, -10 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.h View 1 2 3 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller_unittest.mm View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 2 chunks +64 lines, -78 lines 0 comments Download
M chrome/test/data/instant.html View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
sreeram
Please review.
8 years, 1 month ago (2012-10-23 22:57:56 UTC) #1
sreeram
+dhollowa and +rohitrao for views and cocoa respectively. This CL was born out of the ...
8 years, 1 month ago (2012-10-23 23:44:11 UTC) #2
sky
http://codereview.chromium.org/11233076/diff/1/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): http://codereview.chromium.org/11233076/diff/1/chrome/browser/instant/instant_controller.cc#newcode736 chrome/browser/instant/instant_controller.cc:736: MessageLoop::current()->DeleteSoon(FROM_HERE, loader_.release()); Add comment as to why delayed delete. ...
8 years, 1 month ago (2012-10-24 03:51:16 UTC) #3
dhollowa
*.mm LGTM.
8 years, 1 month ago (2012-10-24 16:40:14 UTC) #4
rohitrao (ping after 24h)
cocoa LGTM
8 years, 1 month ago (2012-10-24 16:42:08 UTC) #5
sreeram
http://codereview.chromium.org/11233076/diff/1/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): http://codereview.chromium.org/11233076/diff/1/chrome/browser/instant/instant_controller.cc#newcode736 chrome/browser/instant/instant_controller.cc:736: MessageLoop::current()->DeleteSoon(FROM_HERE, loader_.release()); On 2012/10/24 03:51:16, sky wrote: > Add ...
8 years, 1 month ago (2012-10-24 16:46:44 UTC) #6
sky
http://codereview.chromium.org/11233076/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): http://codereview.chromium.org/11233076/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode1383 chrome/browser/ui/views/frame/browser_view.cc:1383: void BrowserView::TabInsertedAt(TabContents* contents, int index, bool active) { On ...
8 years, 1 month ago (2012-10-24 20:49:26 UTC) #7
sreeram
http://codereview.chromium.org/11233076/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): http://codereview.chromium.org/11233076/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode1383 chrome/browser/ui/views/frame/browser_view.cc:1383: void BrowserView::TabInsertedAt(TabContents* contents, int index, bool active) { On ...
8 years, 1 month ago (2012-10-25 00:44:33 UTC) #8
sky
LGTM
8 years, 1 month ago (2012-10-25 15:02:18 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sreeram@chromium.org/11233076/16004
8 years, 1 month ago (2012-10-25 18:23:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sreeram@chromium.org/11233076/21001
8 years, 1 month ago (2012-10-26 16:59:46 UTC) #11
commit-bot: I haz the power
Commit queue had an internal error. Something went really wrong, probably a crash, a hickup ...
8 years, 1 month ago (2012-10-26 17:12:00 UTC) #12
commit-bot: I haz the power
8 years, 1 month ago (2012-10-26 17:54:59 UTC) #13
Change committed as 164350

Powered by Google App Engine
This is Rietveld 408576698