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

Issue 613203002: Have PlatformEventObserver implementations orderly stop on destruction. (Closed)

Created:
6 years, 2 months ago by sof
Modified:
6 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mkwst+moarreviews-shell_chromium.org, Michael van Ouwerkerk, riju_, timvolodine
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Have PlatformEventObserver implementations orderly stop on destruction. Move out the stop-a-still-observing-observer-on-destruct handling to the destructors of the objects that implement the pure virtual SendStopMessage(). Cannot call upon a virtual from within ~PlatformEventObserver. R=jochen@chromium.org,mkwst@chromium.org,mlamouri@chromium.org BUG= Committed: https://crrev.com/89f23cffd859b3dc00c98686209e2ab5343ede80 Cr-Commit-Position: refs/heads/master@{#297614}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Clean up a comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -5 lines) Patch
M content/public/renderer/platform_event_observer.h View 1 2 chunks +15 lines, -4 lines 0 comments Download
M content/renderer/battery_status/battery_status_dispatcher.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/device_sensors/device_sensor_event_pump.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gamepad_shared_memory_reader.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/screen_orientation/screen_orientation_observer.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/screen_orientation/screen_orientation_observer.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/shell/renderer/test_runner/gamepad_controller.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 14 (4 generated)
sof
Please take a look. Ran into while working on https://codereview.chromium.org/618673002/
6 years, 2 months ago (2014-09-30 11:44:05 UTC) #2
Mike West
Drive-by LGTM. You'll need an OWNER for the code, obviously, but this really increases clarity. ...
6 years, 2 months ago (2014-09-30 11:54:15 UTC) #4
Mike West
https://codereview.chromium.org/613203002/diff/1/content/public/renderer/platform_event_observer.h File content/public/renderer/platform_event_observer.h (right): https://codereview.chromium.org/613203002/diff/1/content/public/renderer/platform_event_observer.h#newcode111 content/public/renderer/platform_event_observer.h:111: // from their destructor to shutdown in an orderly ...
6 years, 2 months ago (2014-09-30 11:55:32 UTC) #5
sof
https://codereview.chromium.org/613203002/diff/1/content/public/renderer/platform_event_observer.h File content/public/renderer/platform_event_observer.h (right): https://codereview.chromium.org/613203002/diff/1/content/public/renderer/platform_event_observer.h#newcode112 content/public/renderer/platform_event_observer.h:112: // (As Stop() calls a virtual method, it cannot ...
6 years, 2 months ago (2014-09-30 12:03:41 UTC) #6
mlamouri (slow - plz ping)
lgtm. Though even if I wrote the code, I do not think I own it.
6 years, 2 months ago (2014-09-30 17:02:32 UTC) #7
mlamouri (slow - plz ping)
+avi@ for content/ OWNER.
6 years, 2 months ago (2014-09-30 17:03:18 UTC) #9
jochen (gone - plz use gerrit)
lgtm
6 years, 2 months ago (2014-10-01 07:34:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/613203002/20001
6 years, 2 months ago (2014-10-01 08:17:33 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 9e2ab81bf0bedeb67a286b1ca244b97c7c8a6cc7
6 years, 2 months ago (2014-10-01 09:12:18 UTC) #13
commit-bot: I haz the power
6 years, 2 months ago (2014-10-01 09:12:59 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/89f23cffd859b3dc00c98686209e2ab5343ede80
Cr-Commit-Position: refs/heads/master@{#297614}

Powered by Google App Engine
This is Rietveld 408576698