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

Unified Diff: base/message_pump_libevent.cc

Issue 8414020: Expose the sandbox related code through the content API. I did a bit of cleanup while I was doing... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
Index: base/message_pump_libevent.cc
===================================================================
--- base/message_pump_libevent.cc (revision 107845)
+++ base/message_pump_libevent.cc (working copy)
@@ -11,7 +11,6 @@
#include "base/compiler_specific.h"
#include "base/eintr_wrapper.h"
#include "base/logging.h"
-#include "base/mac/scoped_nsautorelease_pool.h"
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
#include "base/time.h"
@@ -21,6 +20,10 @@
#include "third_party/libevent/event.h"
#endif
+#if defined(OS_MACOSX)
+#include "base/mac/scoped_nsautorelease_pool.h"
+#endif
+
// Lifecycle of struct event
// Libevent uses two main data structures:
// struct event_base (of which there is one per message pump), and
@@ -228,7 +231,9 @@
scoped_ptr<event> timer_event(new event);
for (;;) {
+#if defined(OS_MACOSX)
mac::ScopedNSAutoreleasePool autorelease_pool;
+#endif
bool did_work = delegate->DoWork();
if (!keep_running_)

Powered by Google App Engine
This is Rietveld 408576698