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

Unified Diff: android_webview/browser/shared_renderer_state.cc

Issue 509453002: android_webview : Class member variable WeakPtrFactory in proper order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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: 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();
}
« no previous file with comments | « android_webview/browser/shared_renderer_state.h ('k') | android_webview/native/aw_quota_manager_bridge_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698