DescriptionThe changes are as follows:
1. InputDeviceManager becomes a thread-local singleton instead of a global
singleton. UI Service instantiates DeviceDataManager, which is the service-
side implementation of InputDeviceManager, while the browser uses
InputDeviceClient, which is the client-side implementation.
2. PlatformEventSource also becomes a thread-local singleton. This is to prevent
ash and the browser from executing code on the UI Service's thread by
registering PlatformEventObservers (e.g. via UserActivityDetector). In the
futurer we may need a client-side implementation of PlatformEventSource.
3. GPU Service checks if a PowerMonitor singleton exists before creating one.
This is temporary until GPU Service runs in a separate process from the UI
Service. (crbug.com/609317).
BUG=722527
Review-Url: https://codereview.chromium.org/2978873002
Cr-Commit-Position: refs/heads/master@{#486534}
Committed: https://chromium.googlesource.com/chromium/src/+/f76cad2a7e88da1ddc5a7a2df053cee1c4f3c02f
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Removing unneeded dependency. #
Messages
Total messages: 25 (19 generated)
|