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

Unified Diff: content/common/gpu/gpu_channel_manager.cc

Issue 565833002: Refactoring the weak_ptr_factory order in src/content/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « content/common/gpu/gpu_channel_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel_manager.cc
diff --git a/content/common/gpu/gpu_channel_manager.cc b/content/common/gpu/gpu_channel_manager.cc
index 53dfca38abb111839cadf9bf3ef74929cbe17d92..35070447b86916f97243092a06da159b62157e7f 100644
--- a/content/common/gpu/gpu_channel_manager.cc
+++ b/content/common/gpu/gpu_channel_manager.cc
@@ -80,8 +80,7 @@ GpuChannelManager::GpuChannelManager(MessageRouter* router,
base::MessageLoopProxy* io_message_loop,
base::WaitableEvent* shutdown_event,
IPC::SyncChannel* channel)
- : weak_factory_(this),
- io_message_loop_(io_message_loop),
+ : io_message_loop_(io_message_loop),
shutdown_event_(shutdown_event),
router_(router),
gpu_memory_manager_(
@@ -92,7 +91,8 @@ GpuChannelManager::GpuChannelManager(MessageRouter* router,
gpu_memory_buffer_factory_(GpuMemoryBufferFactory::Create()),
channel_(channel),
filter_(new GpuChannelManagerMessageFilter(
- gpu_memory_buffer_factory_.get())) {
+ gpu_memory_buffer_factory_.get())),
+ weak_factory_(this) {
DCHECK(router_);
DCHECK(io_message_loop);
DCHECK(shutdown_event);
« no previous file with comments | « content/common/gpu/gpu_channel_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698