summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/translate_helper.h
diff options
context:
space:
mode:
authormad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-12 04:27:01 +0000
committermad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-12 04:27:01 +0000
commit81c9c6601c9982cc316e8c292011bc08ab140d6a (patch)
tree2d553304d79c3b1c66d12dc90afb4e0d5f60a571 /chrome/renderer/translate_helper.h
parent95b74951a911bb25b7116bdba7776952dc989ce2 (diff)
downloadchromium_src-81c9c6601c9982cc316e8c292011bc08ab140d6a.zip
chromium_src-81c9c6601c9982cc316e8c292011bc08ab140d6a.tar.gz
chromium_src-81c9c6601c9982cc316e8c292011bc08ab140d6a.tar.bz2
Fixing deprecated NewRunnableMethod() calls converting them over to base::Bind().
BUG=None TEST=All your test are belong to us! :-) Review URL: http://codereview.chromium.org/8144006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105009 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/translate_helper.h')
-rw-r--r--chrome/renderer/translate_helper.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/renderer/translate_helper.h b/chrome/renderer/translate_helper.h
index c0c7f9f..0974b4b 100644
--- a/chrome/renderer/translate_helper.h
+++ b/chrome/renderer/translate_helper.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -8,7 +8,7 @@
#include <string>
-#include "base/task.h"
+#include "base/memory/weak_ptr.h"
#include "chrome/common/translate_errors.h"
#include "content/public/renderer/render_view_observer.h"
@@ -139,7 +139,7 @@ class TranslateHelper : public content::RenderViewObserver {
autofill::AutofillAgent* autofill_;
// Method factory used to make calls to TranslatePageImpl.
- ScopedRunnableMethodFactory<TranslateHelper> method_factory_;
+ base::WeakPtrFactory<TranslateHelper> weak_method_factory_;
DISALLOW_COPY_AND_ASSIGN(TranslateHelper);
};