OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/object_watcher.h" | 5 #include "base/object_watcher.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace base { | 9 namespace base { |
10 | 10 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 watch->origin_loop->PostTask(FROM_HERE, watch); | 129 watch->origin_loop->PostTask(FROM_HERE, watch); |
130 } | 130 } |
131 | 131 |
132 void ObjectWatcher::WillDestroyCurrentMessageLoop() { | 132 void ObjectWatcher::WillDestroyCurrentMessageLoop() { |
133 // Need to shutdown the watch so that we don't try to access the MessageLoop | 133 // Need to shutdown the watch so that we don't try to access the MessageLoop |
134 // after this point. | 134 // after this point. |
135 StopWatching(); | 135 StopWatching(); |
136 } | 136 } |
137 | 137 |
138 } // namespace base | 138 } // namespace base |
139 | |
OLD | NEW |