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

Unified Diff: base/run_loop.cc

Issue 26308002: Fix some WeakPtrFactory members that aren't last (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix weak ptr initialization Created 7 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
« no previous file with comments | « base/run_loop.h ('k') | chrome/renderer/pepper/pepper_flash_renderer_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/run_loop.cc
diff --git a/base/run_loop.cc b/base/run_loop.cc
index 2e80ff29e017a92cd8b4a071ab132119c25dfca8..8666ee448fed996bad38a726db35845114fa69b2 100644
--- a/base/run_loop.cc
+++ b/base/run_loop.cc
@@ -10,13 +10,13 @@ namespace base {
RunLoop::RunLoop()
: loop_(MessageLoop::current()),
- weak_factory_(this),
previous_run_loop_(NULL),
run_depth_(0),
run_called_(false),
quit_called_(false),
running_(false),
- quit_when_idle_received_(false) {
+ quit_when_idle_received_(false),
+ weak_factory_(this) {
#if !defined(OS_MACOSX) && !defined(OS_ANDROID) && \
!defined(USE_GTK_MESSAGE_PUMP)
dispatcher_ = NULL;
@@ -27,14 +27,14 @@ RunLoop::RunLoop()
!defined(USE_GTK_MESSAGE_PUMP)
RunLoop::RunLoop(MessageLoop::Dispatcher* dispatcher)
: loop_(MessageLoop::current()),
- weak_factory_(this),
previous_run_loop_(NULL),
dispatcher_(dispatcher),
run_depth_(0),
run_called_(false),
quit_called_(false),
running_(false),
- quit_when_idle_received_(false) {
+ quit_when_idle_received_(false),
+ weak_factory_(this) {
}
#endif
« no previous file with comments | « base/run_loop.h ('k') | chrome/renderer/pepper/pepper_flash_renderer_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698