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

Issue 2877883002: Consolidate two IsArcWindow functions to reduce code duplication (Closed)

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.

Description

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/+/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@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -43 lines) Patch
M chrome/browser/chromeos/arc/boot_phase_monitor/arc_instance_throttle.cc View 1 5 chunks +5 lines, -11 lines 0 comments Download
M chrome/browser/memory/tab_manager_delegate_chromeos.cc View 5 chunks +3 lines, -16 lines 0 comments Download
M chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc View 1 2 1 chunk +0 lines, -14 lines 0 comments Download
M components/arc/BUILD.gn View 1 2 3 4 5 4 chunks +4 lines, -2 lines 0 comments Download
M components/arc/DEPS View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M components/arc/arc_util.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M components/arc/arc_util.cc View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M components/arc/arc_util_unittest.cc View 1 2 3 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 71 (58 generated)
Yusuke Sato
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/tab_manager_delegate_chromeos.cc ...
3 years, 7 months ago (2017-05-12 20:14:58 UTC) #32
Luis Héctor Chávez
https://codereview.chromium.org/2877883002/diff/120001/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (left): https://codereview.chromium.org/2877883002/diff/120001/chrome/browser/memory/tab_manager_delegate_chromeos.cc#oldcode41 chrome/browser/memory/tab_manager_delegate_chromeos.cc:41: #include "components/exo/shell_surface.h" Can this also be removed from the ...
3 years, 7 months ago (2017-05-12 20:44:19 UTC) #33
cylee1
lgtm tab_manager_delegate_chromeos.cc
3 years, 7 months ago (2017-05-12 20:57:27 UTC) #34
Yusuke Sato
Thanks, PTAL https://codereview.chromium.org/2877883002/diff/120001/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (left): https://codereview.chromium.org/2877883002/diff/120001/chrome/browser/memory/tab_manager_delegate_chromeos.cc#oldcode41 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 ...
3 years, 7 months ago (2017-05-12 21:06:13 UTC) #36
Luis Héctor Chávez
lgtm defer to oshima.
3 years, 7 months ago (2017-05-12 21:27:54 UTC) #38
oshima
https://codereview.chromium.org/2877883002/diff/140001/components/arc/arc_util.cc File components/arc/arc_util.cc (right): https://codereview.chromium.org/2877883002/diff/140001/components/arc/arc_util.cc#newcode121 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) ...
3 years, 7 months ago (2017-05-13 01:06:09 UTC) #41
Yusuke Sato
Thanks, please take another look. https://codereview.chromium.org/2877883002/diff/140001/components/arc/arc_util.cc File components/arc/arc_util.cc (right): https://codereview.chromium.org/2877883002/diff/140001/components/arc/arc_util.cc#newcode121 components/arc/arc_util.cc:121: return wm_window->GetAppType() == static_cast<int>(ash::AppType::ARC_APP); ...
3 years, 7 months ago (2017-05-15 21:57:50 UTC) #54
oshima
lgtm
3 years, 7 months ago (2017-05-16 00:39:26 UTC) #57
Yusuke Sato
+sadrul Could you do an owner review? I'm adding ui/aura/ to components/arc/DEPS.
3 years, 7 months ago (2017-05-16 01:13:28 UTC) #59
sadrul
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.gn#newcode124 components/arc/BUILD.gn:124: "//ui/aura", I don't really know what the difference ...
3 years, 7 months ago (2017-05-16 18:21:51 UTC) #60
Yusuke Sato
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.gn#newcode124 components/arc/BUILD.gn:124: "//ui/aura", On 2017/05/16 18:21:51, sadrul wrote: > I don't ...
3 years, 7 months ago (2017-05-16 21:57:58 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2877883002/240001
3 years, 7 months ago (2017-05-17 00:27:36 UTC) #68
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 03:57:15 UTC) #71
Message was sent while issue was closed.
Committed patchset #6 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/5f38c3cd32e96ccbf3f37653aeb3...

Powered by Google App Engine
This is Rietveld 408576698