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

Side by Side Diff: base/message_loop.cc

Issue 43096: Fix tree bustage (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 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/message_loop.h" 5 #include "base/message_loop.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 } else { 366 } else {
367 // TODO(darin): Delete all tasks once it is safe to do so. 367 // TODO(darin): Delete all tasks once it is safe to do so.
368 // Until it is totally safe, just do it when running purify. 368 // Until it is totally safe, just do it when running purify.
369 #ifdef PURIFY 369 #ifdef PURIFY
370 delete task; 370 delete task;
371 #endif // PURIFY 371 #endif // PURIFY
372 } 372 }
373 } 373 }
374 did_work |= !deferred_non_nestable_work_queue_.empty(); 374 did_work |= !deferred_non_nestable_work_queue_.empty();
375 while (!deferred_non_nestable_work_queue_.empty()) { 375 while (!deferred_non_nestable_work_queue_.empty()) {
376 Task* task = deferred_non_nestable_work_queue_.front().task;
377 deferred_non_nestable_work_queue_.pop();
378 // TODO(darin): Delete all tasks once it is safe to do so. 376 // TODO(darin): Delete all tasks once it is safe to do so.
379 // Until it is totaly safe, just delete them to keep purify happy. 377 // Until it is totaly safe, just delete them to keep purify happy.
380 #ifdef PURIFY 378 #ifdef PURIFY
379 Task* task = deferred_non_nestable_work_queue_.front().task;
380 #endif
381 deferred_non_nestable_work_queue_.pop();
382 #ifdef PURIFY
381 delete task; 383 delete task;
382 #endif 384 #endif
383 } 385 }
384 did_work |= !delayed_work_queue_.empty(); 386 did_work |= !delayed_work_queue_.empty();
385 while (!delayed_work_queue_.empty()) { 387 while (!delayed_work_queue_.empty()) {
386 Task* task = delayed_work_queue_.top().task; 388 Task* task = delayed_work_queue_.top().task;
387 delayed_work_queue_.pop(); 389 delayed_work_queue_.pop();
388 delete task; 390 delete task;
389 } 391 }
390 return did_work; 392 return did_work;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 Watcher *delegate) { 608 Watcher *delegate) {
607 return pump_libevent()->WatchFileDescriptor( 609 return pump_libevent()->WatchFileDescriptor(
608 fd, 610 fd,
609 persistent, 611 persistent,
610 static_cast<base::MessagePumpLibevent::Mode>(mode), 612 static_cast<base::MessagePumpLibevent::Mode>(mode),
611 controller, 613 controller,
612 delegate); 614 delegate);
613 } 615 }
614 616
615 #endif 617 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698