|
|
Created:
3 years, 7 months ago by Yusuke Sato Modified:
3 years, 7 months ago CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, oshima+watch_chromium.org, yusukes+watch_chromium.org, droger+watchlist_chromium.org, blundell+watchlist_chromium.org, hidehiko+watch_chromium.org, sdefresne+watchlist_chromium.org, lhchavez+watch_chromium.org, victorhsieh+watch_chromium.org, davemoore+watch_chromium.org Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionConsolidate two IsArcWindow functions to reduce code duplication
Also add a unittest for better test coverage.
BUG=None
TEST=try
Review-Url: https://codereview.chromium.org/2877883002
Cr-Commit-Position: refs/heads/master@{#472314}
Committed: https://chromium.googlesource.com/chromium/src/+/5f38c3cd32e96ccbf3f37653aeb30e8d268e9d36
Patch Set 1 #Patch Set 2 : review #
Total comments: 5
Patch Set 3 : address comments from Luis #
Total comments: 2
Patch Set 4 : address oshima's comment #Patch Set 5 : Fix BUILD.gn #
Total comments: 2
Patch Set 6 : Address a comment from sadrul@ #
Messages
Total messages: 71 (58 generated)
The CQ bit was checked by yusukes@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-...) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_...)
The CQ bit was checked by yusukes@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-...) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_...) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by yusukes@chromium.org to run a CQ dry run
Description was changed from ========== wip: Consolidate two IsArcWindow functions to reduce code duplication BUG=None TEST=try ========== to ========== wip: Consolidate two IsArcWindow functions to reduce code duplication Also add a unittest for better code coverage. BUG=None TEST=try ==========
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-...) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by yusukes@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #2 (id:20001) has been deleted
Patchset #2 (id:40001) has been deleted
Description was changed from ========== wip: Consolidate two IsArcWindow functions to reduce code duplication Also add a unittest for better code coverage. BUG=None TEST=try ========== to ========== wip: Consolidate two IsArcWindow functions to reduce code duplication Also add a unittest for better test coverage. BUG=None TEST=try ==========
The CQ bit was checked by yusukes@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #2 (id:60001) has been deleted
The CQ bit was checked by yusukes@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #2 (id:80001) has been deleted
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by yusukes@chromium.org to run a CQ dry run
Patchset #1 (id:1) has been deleted
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== wip: Consolidate two IsArcWindow functions to reduce code duplication Also add a unittest for better test coverage. BUG=None TEST=try ========== to ========== Consolidate two IsArcWindow functions to reduce code duplication Also add a unittest for better test coverage. BUG=None TEST=try ==========
yusukes@chromium.org changed reviewers: + cylee@chromium.org, lhchavez@chromium.org, oshima@chromium.org
OWNERs, please have a look. Luis: **/arc/ Cheng-Yu: c/b/memory/ Oshima: components/arc/DEPS and components/arc/arc_util.cc Thanks! https://codereview.chromium.org/2877883002/diff/120001/chrome/browser/memory/... File chrome/browser/memory/tab_manager_delegate_chromeos.cc (left): https://codereview.chromium.org/2877883002/diff/120001/chrome/browser/memory/... chrome/browser/memory/tab_manager_delegate_chromeos.cc:78: std::string application_id = exo::ShellSurface::GetApplicationId(window); oshima: arc_util.cc's implementation doesn't do this string comparison, and instead, checks if the window's AppType is ash::AppType::ARC_APP. I believe arc_util.cc's way doesn't have any disadvantages (and is slightly faster/simpler) but please let me know if I'm wrong.
https://codereview.chromium.org/2877883002/diff/120001/chrome/browser/memory/... File chrome/browser/memory/tab_manager_delegate_chromeos.cc (left): https://codereview.chromium.org/2877883002/diff/120001/chrome/browser/memory/... chrome/browser/memory/tab_manager_delegate_chromeos.cc:41: #include "components/exo/shell_surface.h" Can this also be removed from the unittest? https://codereview.chromium.org/2877883002/diff/120001/components/arc/arc_util.h File components/arc/arc_util.h (right): https://codereview.chromium.org/2877883002/diff/120001/components/arc/arc_uti... components/arc/arc_util.h:73: // Returns true if |window| is associated with an ash::WmWindow whose type is nit: s/ash::WmWindow/aura::Window/
lgtm tab_manager_delegate_chromeos.cc
The CQ bit was checked by yusukes@chromium.org to run a CQ dry run
Thanks, PTAL https://codereview.chromium.org/2877883002/diff/120001/chrome/browser/memory/... File chrome/browser/memory/tab_manager_delegate_chromeos.cc (left): https://codereview.chromium.org/2877883002/diff/120001/chrome/browser/memory/... chrome/browser/memory/tab_manager_delegate_chromeos.cc:41: #include "components/exo/shell_surface.h" On 2017/05/12 20:44:19, Luis Héctor Chávez wrote: > Can this also be removed from the unittest? Good catch! Done (with many other #includes) https://codereview.chromium.org/2877883002/diff/120001/components/arc/arc_util.h File components/arc/arc_util.h (right): https://codereview.chromium.org/2877883002/diff/120001/components/arc/arc_uti... components/arc/arc_util.h:73: // Returns true if |window| is associated with an ash::WmWindow whose type is On 2017/05/12 20:44:19, Luis Héctor Chávez wrote: > nit: s/ash::WmWindow/aura::Window/ Rephrased the comment. I think the original one was okay (although it was probably too detailed.)
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm defer to oshima.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
https://codereview.chromium.org/2877883002/diff/140001/components/arc/arc_uti... File components/arc/arc_util.cc (right): https://codereview.chromium.org/2877883002/diff/140001/components/arc/arc_uti... components/arc/arc_util.cc:121: return wm_window->GetAppType() == static_cast<int>(ash::AppType::ARC_APP); Could you please use GetProperty(aura::client::kAppType) instead and change the dependency to ash/shared.
The CQ bit was checked by yusukes@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by yusukes@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by yusukes@chromium.org to run a CQ dry run
Patchset #5 (id:180001) has been deleted
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-...) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_...) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by yusukes@chromium.org to run a CQ dry run
Patchset #5 (id:200001) has been deleted
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Thanks, please take another look. https://codereview.chromium.org/2877883002/diff/140001/components/arc/arc_uti... File components/arc/arc_util.cc (right): https://codereview.chromium.org/2877883002/diff/140001/components/arc/arc_uti... components/arc/arc_util.cc:121: return wm_window->GetAppType() == static_cast<int>(ash::AppType::ARC_APP); On 2017/05/13 01:06:09, oshima wrote: > Could you please use GetProperty(aura::client::kAppType) instead and change the > dependency to ash/shared. Done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
lgtm
yusukes@chromium.org changed reviewers: + sadrul@chromium.org
+sadrul Could you do an owner review? I'm adding ui/aura/ to components/arc/DEPS.
lgtm https://codereview.chromium.org/2877883002/diff/220001/components/arc/BUILD.gn File components/arc/BUILD.gn (right): https://codereview.chromium.org/2877883002/diff/220001/components/arc/BUILD.g... components/arc/BUILD.gn:124: "//ui/aura", I don't really know what the difference is between arc_base and arc targets. But do you want to grow a dependency on ash and aura from something called "arc_base"? Would it make sense to move this into "arc" instead?
The CQ bit was checked by yusukes@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2877883002/diff/220001/components/arc/BUILD.gn File components/arc/BUILD.gn (right): https://codereview.chromium.org/2877883002/diff/220001/components/arc/BUILD.g... components/arc/BUILD.gn:124: "//ui/aura", On 2017/05/16 18:21:51, sadrul wrote: > I don't really know what the difference is between arc_base and arc targets. But > do you want to grow a dependency on ash and aura from something called > "arc_base"? Would it make sense to move this into "arc" instead? Thanks. Chatted with lhchavez@ and moved them to "arc".
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
The CQ bit was checked by yusukes@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from cylee@chromium.org, lhchavez@chromium.org, oshima@chromium.org, sadrul@chromium.org Link to the patchset: https://codereview.chromium.org/2877883002/#ps240001 (title: "Address a comment from sadrul@")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 240001, "attempt_start_ts": 1494980771962430, "parent_rev": "3edd0dad3fd5511ded2a49ce0ce2642718f8801c", "commit_rev": "5f38c3cd32e96ccbf3f37653aeb30e8d268e9d36"}
Message was sent while issue was closed.
Description was changed from ========== Consolidate two IsArcWindow functions to reduce code duplication Also add a unittest for better test coverage. BUG=None TEST=try ========== to ========== Consolidate two IsArcWindow functions to reduce code duplication Also add a unittest for better test coverage. BUG=None TEST=try Review-Url: https://codereview.chromium.org/2877883002 Cr-Commit-Position: refs/heads/master@{#472314} Committed: https://chromium.googlesource.com/chromium/src/+/5f38c3cd32e96ccbf3f37653aeb3... ==========
Message was sent while issue was closed.
Committed patchset #6 (id:240001) as https://chromium.googlesource.com/chromium/src/+/5f38c3cd32e96ccbf3f37653aeb3... |