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

Unified Diff: device/devices_app/devices_app.cc

Issue 1200323003: media: Quit MojoMediaApplication when no service is bound. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | media/mojo/services/mojo_cdm_service.h » ('j') | media/mojo/services/mojo_media_application.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/devices_app/devices_app.cc
diff --git a/device/devices_app/devices_app.cc b/device/devices_app/devices_app.cc
index 318ebf62afd34d03b4ff3a31a447311284255ee2..c66287e2bcb0883f88eafc39b91f561553b85691 100644
--- a/device/devices_app/devices_app.cc
+++ b/device/devices_app/devices_app.cc
@@ -152,7 +152,7 @@ void DevicesApp::Create(mojo::ApplicationConnection* connection,
}
void DevicesApp::OnConnectionError() {
- DCHECK_GE(active_device_manager_count_, 0u);
+ DCHECK_GT(active_device_manager_count_, 0u);
active_device_manager_count_--;
if (active_device_manager_count_ == 0) {
// If the last DeviceManager connection has been dropped, kick off an idle
« no previous file with comments | « no previous file | media/mojo/services/mojo_cdm_service.h » ('j') | media/mojo/services/mojo_media_application.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698