| Index: components/translate/core/browser/translate_script.cc
|
| diff --git a/components/translate/core/browser/translate_script.cc b/components/translate/core/browser/translate_script.cc
|
| index 83f693a0b83068061087cd6351ca5ec550beae62..379b55b183aec2a8ffc392a3335212531bb30730 100644
|
| --- a/components/translate/core/browser/translate_script.cc
|
| +++ b/components/translate/core/browser/translate_script.cc
|
| @@ -6,12 +6,14 @@
|
|
|
| #include "base/bind.h"
|
| #include "base/command_line.h"
|
| +#include "base/location.h"
|
| #include "base/logging.h"
|
| -#include "base/message_loop/message_loop.h"
|
| #include "base/profiler/scoped_tracker.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/strings/string_piece.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/stringprintf.h"
|
| +#include "base/thread_task_runner_handle.h"
|
| #include "components/translate/core/browser/translate_url_fetcher.h"
|
| #include "components/translate/core/browser/translate_url_util.h"
|
| #include "components/translate/core/common/translate_switches.h"
|
| @@ -142,10 +144,9 @@ void TranslateScript::OnScriptFetchComplete(
|
| // We'll expire the cached script after some time, to make sure long
|
| // running browsers still get fixes that might get pushed with newer
|
| // scripts.
|
| - base::MessageLoop::current()->PostDelayedTask(
|
| + base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
| FROM_HERE,
|
| - base::Bind(&TranslateScript::Clear,
|
| - weak_method_factory_.GetWeakPtr()),
|
| + base::Bind(&TranslateScript::Clear, weak_method_factory_.GetWeakPtr()),
|
| expiration_delay_);
|
| }
|
|
|
|
|