OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "base/task.h" | 10 #include "base/task.h" |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 } | 287 } |
288 | 288 |
289 void DownloadTestFlushObserver::PingIOThread(int cycle) { | 289 void DownloadTestFlushObserver::PingIOThread(int cycle) { |
290 if (--cycle) { | 290 if (--cycle) { |
291 BrowserThread::PostTask( | 291 BrowserThread::PostTask( |
292 BrowserThread::UI, FROM_HERE, | 292 BrowserThread::UI, FROM_HERE, |
293 NewRunnableMethod(this, &DownloadTestFlushObserver::PingFileThread, | 293 NewRunnableMethod(this, &DownloadTestFlushObserver::PingFileThread, |
294 cycle)); | 294 cycle)); |
295 } else { | 295 } else { |
296 BrowserThread::PostTask( | 296 BrowserThread::PostTask( |
297 BrowserThread::UI, FROM_HERE, new MessageLoop::QuitTask()); | 297 BrowserThread::UI, FROM_HERE, MessageLoop::QuitClosure()); |
298 } | 298 } |
299 } | 299 } |
OLD | NEW |