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

Side by Side Diff: ash/test/test_system_tray_delegate.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/shelf_view_test_api.cc ('k') | chromeos/dbus/services/service_provider_test_helper.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ash/test/test_system_tray_delegate.h" 5 #include "ash/test/test_system_tray_delegate.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ash/session/session_state_delegate.h" 9 #include "ash/session/session_state_delegate.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 88 }
89 89
90 bool TestSystemTrayDelegate::GetSessionLengthLimit( 90 bool TestSystemTrayDelegate::GetSessionLengthLimit(
91 base::TimeDelta* session_length_limit) { 91 base::TimeDelta* session_length_limit) {
92 if (session_length_limit_set_) 92 if (session_length_limit_set_)
93 *session_length_limit = session_length_limit_; 93 *session_length_limit = session_length_limit_;
94 return session_length_limit_set_; 94 return session_length_limit_set_;
95 } 95 }
96 96
97 void TestSystemTrayDelegate::SignOut() { 97 void TestSystemTrayDelegate::SignOut() {
98 base::MessageLoop::current()->Quit(); 98 base::MessageLoop::current()->QuitWhenIdle();
99 } 99 }
100 100
101 } // namespace test 101 } // namespace test
102 } // namespace ash 102 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/shelf_view_test_api.cc ('k') | chromeos/dbus/services/service_provider_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698