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

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: Created 4 years, 5 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
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);
}

Powered by Google App Engine
This is Rietveld 408576698