OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "mojo/application/app_lifetime_helper.h" | 5 #include "mojo/application/app_lifetime_helper.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "mojo/application/public/cpp/application_impl.h" | 9 #include "mojo/application/public/cpp/application_impl.h" |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 AddRef(); | 74 AddRef(); |
75 return make_scoped_ptr(new AppRefCount( | 75 return make_scoped_ptr(new AppRefCount( |
76 this, base::MessageLoop::current()->task_runner())); | 76 this, base::MessageLoop::current()->task_runner())); |
77 } | 77 } |
78 | 78 |
79 void AppLifetimeHelper::AddRef() { | 79 void AppLifetimeHelper::AddRef() { |
80 ref_count_++; | 80 ref_count_++; |
81 } | 81 } |
82 | 82 |
83 void AppLifetimeHelper::Release() { | 83 void AppLifetimeHelper::Release() { |
84 if (!--ref_count_) | 84 if (!--ref_count_) { |
85 ApplicationImpl::Terminate(); | 85 // Disabled until network_service tests pass again http://crbug.com/484234 |
| 86 //ApplicationImpl::Terminate(); |
| 87 } |
86 } | 88 } |
87 | 89 |
88 } // namespace mojo | 90 } // namespace mojo |
OLD | NEW |