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

Side by Side Diff: chromeos/dbus/services/service_provider_test_helper.cc

Issue 1396083003: Don't use base::MessageLoop::{Quit,QuitClosure} in ash/, chromeos/, device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « ash/test/test_system_tray_delegate.cc ('k') | chromeos/login/auth/mock_auth_status_consumer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chromeos/dbus/services/service_provider_test_helper.h" 5 #include "chromeos/dbus/services/service_provider_test_helper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "dbus/message.h" 8 #include "dbus/message.h"
9 #include "dbus/mock_bus.h" 9 #include "dbus/mock_bus.h"
10 #include "third_party/cros_system_api/dbus/service_constants.h" 10 #include "third_party/cros_system_api/dbus/service_constants.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Run the callback captured in MockConnectToSignal(). This will call 151 // Run the callback captured in MockConnectToSignal(). This will call
152 // OnSignalReceived(). 152 // OnSignalReceived().
153 on_signal_callback_.Run(signal); 153 on_signal_callback_.Run(signal);
154 } 154 }
155 155
156 void ServiceProviderTestHelper::OnResponse( 156 void ServiceProviderTestHelper::OnResponse(
157 scoped_ptr<dbus::Response> response) { 157 scoped_ptr<dbus::Response> response) {
158 response_ = response.Pass(); 158 response_ = response.Pass();
159 response_received_ = true; 159 response_received_ = true;
160 if (base::MessageLoop::current()->is_running()) 160 if (base::MessageLoop::current()->is_running())
161 base::MessageLoop::current()->Quit(); 161 base::MessageLoop::current()->QuitWhenIdle();
162 } 162 }
163 163
164 } // namespace chromeos 164 } // namespace chromeos
OLDNEW
« no previous file with comments | « ash/test/test_system_tray_delegate.cc ('k') | chromeos/login/auth/mock_auth_status_consumer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698