| Index: content/common/resource_dispatcher.cc
|
| diff --git a/content/common/resource_dispatcher.cc b/content/common/resource_dispatcher.cc
|
| index f7b0b3d5b33b5328508a3c986929a682acd75ca1..7919a9ddb858d587aaa239633edbd82c00db1a98 100644
|
| --- a/content/common/resource_dispatcher.cc
|
| +++ b/content/common/resource_dispatcher.cc
|
| @@ -7,6 +7,7 @@
|
| #include "content/common/resource_dispatcher.h"
|
|
|
| #include "base/basictypes.h"
|
| +#include "base/bind.h"
|
| #include "base/compiler_specific.h"
|
| #include "base/file_path.h"
|
| #include "base/message_loop.h"
|
| @@ -512,8 +513,8 @@ void ResourceDispatcher::SetDefersLoading(int request_id, bool value) {
|
| FollowPendingRedirect(request_id, request_info);
|
|
|
| MessageLoop::current()->PostTask(FROM_HERE,
|
| - method_factory_.NewRunnableMethod(
|
| - &ResourceDispatcher::FlushDeferredMessages, request_id));
|
| + base::Bind(&ResourceDispatcher::FlushDeferredMessages,
|
| + method_factory_.GetWeakPtr(), request_id));
|
| }
|
| }
|
|
|
|
|