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

Issue 2629523006: chromeos: changes DisconnectedAppHandler to be associated with a single window (Closed)

Created:
3 years, 11 months ago by sky
Modified:
3 years, 11 months ago
Reviewers:
sadrul
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: changes DisconnectedAppHandler to be associated with a single window The previous code had a bug that it would never start observing newly added windows (Changing is sent for old parent, and Changed for new parent, so DisconnectedAppHandler really need to override both Changing and Changed). In fixing that I figured it was easier to reason about if it's associated with a single top level window. This bug was causing the shelf to never remove items when the window closed. BUG=none TEST=none R=sadrul@chromium.org Review-Url: https://codereview.chromium.org/2629523006 Cr-Commit-Position: refs/heads/master@{#443486} Committed: https://chromium.googlesource.com/chromium/src/+/02b9d1440e385a6fd768cbff8d8cf8f2443fceef

Patch Set 1 #

Patch Set 2 : comment #

Total comments: 2

Patch Set 3 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -54 lines) Patch
M ash/mus/disconnected_app_handler.h View 1 1 chunk +14 lines, -6 lines 0 comments Download
M ash/mus/disconnected_app_handler.cc View 1 2 1 chunk +18 lines, -43 lines 0 comments Download
M ash/mus/root_window_controller.h View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
M ash/mus/root_window_controller.cc View 1 2 4 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
sky
3 years, 11 months ago (2017-01-12 21:26:49 UTC) #1
sadrul
lgtm https://codereview.chromium.org/2629523006/diff/20001/ash/mus/disconnected_app_handler.cc File ash/mus/disconnected_app_handler.cc (right): https://codereview.chromium.org/2629523006/diff/20001/ash/mus/disconnected_app_handler.cc#newcode16 ash/mus/disconnected_app_handler.cc:16: DEFINE_OWNED_WINDOW_PROPERTY_KEY(DisconnectedAppHandler, This ensures the window handler is destroyed ...
3 years, 11 months ago (2017-01-12 23:26:54 UTC) #6
sky
https://codereview.chromium.org/2629523006/diff/20001/ash/mus/disconnected_app_handler.cc File ash/mus/disconnected_app_handler.cc (right): https://codereview.chromium.org/2629523006/diff/20001/ash/mus/disconnected_app_handler.cc#newcode16 ash/mus/disconnected_app_handler.cc:16: DEFINE_OWNED_WINDOW_PROPERTY_KEY(DisconnectedAppHandler, On 2017/01/12 23:26:54, sadrul wrote: > This ensures ...
3 years, 11 months ago (2017-01-13 03:01:57 UTC) #7
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/2629523006/40001
3 years, 11 months ago (2017-01-13 03:05:19 UTC) #10
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 04:17:47 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/02b9d1440e385a6fd768cbff8d8c...

Powered by Google App Engine
This is Rietveld 408576698