|
|
Created:
7 years, 1 month ago by sky Modified:
7 years, 1 month ago CC:
chromium-reviews, extensions-reviews_chromium.org, jennb, jianli, dcheng, chromium-apps-reviews_chromium.org Base URL:
svn://svn.chromium.org/chrome/trunk/src Visibility:
Public. |
DescriptionAdjusts panel ifdefs for aura
I believe this gives us the behavior we're after.
BUG=289535
TEST=see bug
R=dimich@chromium.org, mpcomplete@chromium.org, stevenjb@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233402
Patch Set 1 #
Total comments: 5
Patch Set 2 : integrate feedback #
Total comments: 2
Patch Set 3 : merge 2 trunk #Patch Set 4 : remove unnecessary call #Patch Set 5 : merge 2 trunk again #Patch Set 6 : add back ifdef #Messages
Total messages: 21 (0 generated)
Thanks a lot Scott! Couple of notes: https://codereview.chromium.org/58873002/diff/1/chrome/browser/extensions/api... File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/58873002/diff/1/chrome/browser/extensions/api... chrome/browser/extensions/api/tabs/tabs_api.cc:207: #if defined(OS_WIN) && !defined(USE_AURA) IsSingleWindowMetroMode() returns false if USE_ASH. I think it was needed for old mode when we had a single browser window (no Ash) in Metro. If so, is this USE_AURA check needed? https://codereview.chromium.org/58873002/diff/1/chrome/browser/extensions/api... chrome/browser/extensions/api/tabs/tabs_api.cc:535: chrome::GetActiveDesktop() == chrome::HOST_DESKTOP_TYPE_ASH) { There should be an else branch that creates a panel via PanelManager - in case when GetActiveDesktop() == HOST_DESKTOP_TYPE_NATIVE. Now this code is under "#else" below, so it won't get compiled in. I think we still want to create native panels when browser runs on Desktop. https://codereview.chromium.org/58873002/diff/1/chrome/browser/ui/panels/pane... File chrome/browser/ui/panels/panel_manager.cc (right): https://codereview.chromium.org/58873002/diff/1/chrome/browser/ui/panels/pane... chrome/browser/ui/panels/panel_manager.cc:127: #if defined(OS_WIN) && !defined(USE_AURA) same as in other file, I don't see why we need test for USE_AURA here, unless I miss something.
https://codereview.chromium.org/58873002/diff/1/chrome/browser/extensions/api... File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/58873002/diff/1/chrome/browser/extensions/api... chrome/browser/extensions/api/tabs/tabs_api.cc:207: #if defined(OS_WIN) && !defined(USE_AURA) On 2013/11/05 05:53:07, Dmitry Titov wrote: > IsSingleWindowMetroMode() returns false if USE_ASH. I think it was needed for > old mode when we had a single browser window (no Ash) in Metro. If so, is this > USE_AURA check needed? You are right. I was trying to make it clear this isn't needed for aura. But I'll remove the USE_AURA. https://codereview.chromium.org/58873002/diff/1/chrome/browser/extensions/api... chrome/browser/extensions/api/tabs/tabs_api.cc:535: chrome::GetActiveDesktop() == chrome::HOST_DESKTOP_TYPE_ASH) { On 2013/11/05 05:53:07, Dmitry Titov wrote: > There should be an else branch that creates a panel via PanelManager - in case > when GetActiveDesktop() == HOST_DESKTOP_TYPE_NATIVE. Now this code is under > "#else" below, so it won't get compiled in. > > I think we still want to create native panels when browser runs on Desktop. I think you're saying nuke the ifdef here. Done. GetActiveDesktop() is safe to call on non-aura/ash.
lgtm
lgtm with small nit: https://codereview.chromium.org/58873002/diff/70001/chrome/browser/extensions... File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/58873002/diff/70001/chrome/browser/extensions... chrome/browser/extensions/api/tabs/tabs_api.cc:533: if (PanelManager::ShouldUsePanels(extension_id) && This check for ShouldUsePanels can be removed since create_panel variable checked above already means the same thing, it does this check earlier.
https://codereview.chromium.org/58873002/diff/70001/chrome/browser/extensions... File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/58873002/diff/70001/chrome/browser/extensions... chrome/browser/extensions/api/tabs/tabs_api.cc:533: if (PanelManager::ShouldUsePanels(extension_id) && On 2013/11/05 17:47:19, Dmitry Titov wrote: > This check for ShouldUsePanels can be removed since create_panel variable > checked above already means the same thing, it does this check earlier. Done.
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/58873002/160001
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, cacheinvalidation_unittests, cc_unittests, check_deps, chromedriver2_unittests, components_unittests, content_browsertests, content_unittests, crypto_unittests, gpu_unittests, interactive_ui_tests, ipc_tests, jingle_unittests, media_unittests, nacl_integration, net_unittests, ppapi_unittests, printing_unittests, remoting_unittests, sandbox_linux_unittests, sql_unittests, sync_integration_tests, sync_unit_tests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&...
I had to add back an ifdef as AshPanelContents only makes sense on ash. Diff between 5&6 to see differences. Take another look?
I don't know enough about this to review it. The other 2 LGTMs should be good enough.
lgtm
Lgtm 2
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/58873002/300002
Retried try job too often on linux_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&...
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/58873002/300002
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura...
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/58873002/300002
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura...
Message was sent while issue was closed.
Committed patchset #6 manually as r233402 (presubmit successful).
Message was sent while issue was closed.
I will take care of merging it into m32 once we have this on Canary for a couple days.
Thanks! I passed the bug your way. -Scott On Wed, Nov 6, 2013 at 2:51 PM, <dimich@chromium.org> wrote: > I will take care of merging it into m32 once we have this on Canary for a > couple > days. > > https://codereview.chromium.org/58873002/ To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org. |