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

Side by Side Diff: chrome/browser/download/download_test_observer.cc

Issue 8873032: Removing MessageLoop::QuitTask() from chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert 3 more problematic files Created 9 years 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | chrome/browser/extensions/app_notification_manager_sync_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698