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

Unified Diff: services/ui/input_devices/input_device_server.cc

Issue 2196563004: Add tests for InputDeviceServer/InputDeviceClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switch test runner. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/input_devices/BUILD.gn ('k') | services/ui/input_devices/input_device_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/input_devices/input_device_server.cc
diff --git a/services/ui/input_devices/input_device_server.cc b/services/ui/input_devices/input_device_server.cc
index 7f21f56acbf79a13295645e380ea6ec0dda582b1..c6bf1e94275dd76bd57a470ac99c06ee2fde85bb 100644
--- a/services/ui/input_devices/input_device_server.cc
+++ b/services/ui/input_devices/input_device_server.cc
@@ -34,7 +34,7 @@ bool InputDeviceServer::IsRegisteredAsObserver() const {
}
void InputDeviceServer::AddInterface(shell::Connection* connection) {
- DCHECK(manager_);
+ DCHECK(IsRegisteredAsObserver());
connection->AddInterface<mojom::InputDeviceServer>(this);
}
« no previous file with comments | « services/ui/input_devices/BUILD.gn ('k') | services/ui/input_devices/input_device_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698