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

Issue 7134035: Make an inserted selected tab selected before calling TabInsertedAt on observers. (Closed)

Created:
9 years, 6 months ago by Yoyo Zhou
Modified:
9 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, Paweł Hajdan Jr., asargent_no_longer_on_chrome, dpapad
Visibility:
Public.

Description

Use active information fromTabInsertedAt in browser event router so that the tabs.onCreated callback result has the correct active ("selected" in the API) state. BUG=59194 TEST=in ExtensionApiTest.TabEvents, reenabled tabsOnCreated Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88703

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : use foreground value in browser event router #

Patch Set 5 : rename selected to active #

Total comments: 8

Patch Set 6 : rename foreground to active, and function style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -23 lines) Patch
M chrome/browser/extensions/extension_browser_event_router.h View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_browser_event_router.cc View 1 2 3 4 5 4 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.h View 1 2 3 4 5 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.cc View 1 2 3 4 5 5 chunks +18 lines, -7 lines 0 comments Download
M chrome/test/data/extensions/api_test/tabs/basics/events.html View 1 2 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Yoyo Zhou
9 years, 6 months ago (2011-06-09 01:30:49 UTC) #1
sky
http://codereview.chromium.org/7134035/diff/4/chrome/browser/tabs/tab_strip_model.cc File chrome/browser/tabs/tab_strip_model.cc (right): http://codereview.chromium.org/7134035/diff/4/chrome/browser/tabs/tab_strip_model.cc#newcode158 chrome/browser/tabs/tab_strip_model.cc:158: if (active) { I'm nervous of the effects of ...
9 years, 6 months ago (2011-06-09 17:13:00 UTC) #2
dpapad
On 2011/06/09 17:13:00, sky wrote: > http://codereview.chromium.org/7134035/diff/4/chrome/browser/tabs/tab_strip_model.cc > File chrome/browser/tabs/tab_strip_model.cc (right): > > http://codereview.chromium.org/7134035/diff/4/chrome/browser/tabs/tab_strip_model.cc#newcode158 > ...
9 years, 6 months ago (2011-06-09 17:30:37 UTC) #3
Yoyo Zhou
On 2011/06/09 17:30:37, dpapad wrote: > On 2011/06/09 17:13:00, sky wrote: > > > http://codereview.chromium.org/7134035/diff/4/chrome/browser/tabs/tab_strip_model.cc ...
9 years, 6 months ago (2011-06-09 17:32:56 UTC) #4
sky
On Thu, Jun 9, 2011 at 10:30 AM, <dpapad@chromium.org> wrote: > On 2011/06/09 17:13:00, sky ...
9 years, 6 months ago (2011-06-09 17:37:16 UTC) #5
dpapad
On 2011/06/09 17:30:37, dpapad wrote: > On 2011/06/09 17:13:00, sky wrote: > > > http://codereview.chromium.org/7134035/diff/4/chrome/browser/tabs/tab_strip_model.cc ...
9 years, 6 months ago (2011-06-09 17:38:34 UTC) #6
Yoyo Zhou
http://codereview.chromium.org/7134035/diff/4/chrome/browser/tabs/tab_strip_model.cc File chrome/browser/tabs/tab_strip_model.cc (right): http://codereview.chromium.org/7134035/diff/4/chrome/browser/tabs/tab_strip_model.cc#newcode158 chrome/browser/tabs/tab_strip_model.cc:158: if (active) { On 2011/06/09 17:13:01, sky wrote: > ...
9 years, 6 months ago (2011-06-09 18:08:53 UTC) #7
jstritar
On 2011/06/09 18:08:53, Yoyo Zhou wrote: > > It gets discarded in ExtensionBrowserEventRouter::TabCreatedAt. I'm not ...
9 years, 6 months ago (2011-06-09 18:27:19 UTC) #8
sky
On Thu, Jun 9, 2011 at 11:27 AM, <jstritar@chromium.org> wrote: > On 2011/06/09 18:08:53, Yoyo ...
9 years, 6 months ago (2011-06-09 18:30:05 UTC) #9
Yoyo Zhou
On 2011/06/09 18:30:05, sky wrote: > On Thu, Jun 9, 2011 at 11:27 AM, <mailto:jstritar@chromium.org> ...
9 years, 6 months ago (2011-06-09 19:18:01 UTC) #10
sky
On Thu, Jun 9, 2011 at 12:18 PM, <yoz@chromium.org> wrote: > On 2011/06/09 18:30:05, sky ...
9 years, 6 months ago (2011-06-09 19:22:39 UTC) #11
Yoyo Zhou
On 2011/06/09 19:22:39, sky wrote: > OTOH your change would modify the selection without notifying. ...
9 years, 6 months ago (2011-06-09 22:04:16 UTC) #12
sky
Your method names have to be named like chrome code (eg ActiveTabChanged). I also think ...
9 years, 6 months ago (2011-06-09 22:29:19 UTC) #13
Yoyo Zhou
On 2011/06/09 22:29:19, sky wrote: > Your method names have to be named like chrome ...
9 years, 6 months ago (2011-06-09 23:09:59 UTC) #14
sky
LGTM http://codereview.chromium.org/7134035/diff/4009/chrome/browser/extensions/extension_browser_event_router.cc File chrome/browser/extensions/extension_browser_event_router.cc (right): http://codereview.chromium.org/7134035/diff/4009/chrome/browser/extensions/extension_browser_event_router.cc#newcode220 chrome/browser/extensions/extension_browser_event_router.cc:220: contents, foreground); foreground->active http://codereview.chromium.org/7134035/diff/4009/chrome/browser/extensions/extension_browser_event_router.cc#newcode390 chrome/browser/extensions/extension_browser_event_router.cc:390: bool foreground) { ...
9 years, 6 months ago (2011-06-10 14:58:58 UTC) #15
Yoyo Zhou
http://codereview.chromium.org/7134035/diff/4009/chrome/browser/extensions/extension_browser_event_router.h File chrome/browser/extensions/extension_browser_event_router.h (right): http://codereview.chromium.org/7134035/diff/4009/chrome/browser/extensions/extension_browser_event_router.h#newcode122 chrome/browser/extensions/extension_browser_event_router.h:122: bool foreground); On 2011/06/10 14:58:59, sky wrote: > foreground ...
9 years, 6 months ago (2011-06-10 18:04:01 UTC) #16
commit-bot: I haz the power
9 years, 6 months ago (2011-06-10 18:58:28 UTC) #17
Change committed as 88703

Powered by Google App Engine
This is Rietveld 408576698