Index: android_webview/browser/shared_renderer_state.cc |
diff --git a/android_webview/browser/shared_renderer_state.cc b/android_webview/browser/shared_renderer_state.cc |
index fddbe71c16895719ab60da50b2a5f193048f4b90..fb887a1b4110e2a208a39bf560e37da9a4a326ed 100644 |
--- a/android_webview/browser/shared_renderer_state.cc |
+++ b/android_webview/browser/shared_renderer_state.cc |
@@ -78,11 +78,11 @@ SharedRendererState::SharedRendererState( |
BrowserViewRendererClient* client) |
: ui_loop_(ui_loop), |
client_on_ui_(client), |
- weak_factory_on_ui_thread_(this), |
- ui_thread_weak_ptr_(weak_factory_on_ui_thread_.GetWeakPtr()), |
- inside_hardware_release_(false) { |
+ inside_hardware_release_(false), |
+ weak_factory_on_ui_thread_(this){ |
DCHECK(ui_loop_->BelongsToCurrentThread()); |
DCHECK(client_on_ui_); |
+ ui_thread_weak_ptr_ = weak_factory_on_ui_thread_.GetWeakPtr(); |
ResetRequestDrawGLCallback(); |
} |