Index: content/renderer/render_view_impl.cc |
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc |
index f0460eac9891599c24ac584b93181867d4f2f960..59343cf0b87a57494012857cfe3f341a1100cd2f 100644 |
--- a/content/renderer/render_view_impl.cc |
+++ b/content/renderer/render_view_impl.cc |
@@ -19,17 +19,20 @@ |
#include "base/i18n/rtl.h" |
#include "base/json/json_writer.h" |
#include "base/lazy_instance.h" |
+#include "base/location.h" |
#include "base/memory/ptr_util.h" |
#include "base/metrics/field_trial.h" |
#include "base/metrics/histogram.h" |
#include "base/process/kill.h" |
#include "base/process/process.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/strings/string_number_conversions.h" |
#include "base/strings/string_piece.h" |
#include "base/strings/string_split.h" |
#include "base/strings/string_util.h" |
#include "base/strings/sys_string_conversions.h" |
#include "base/strings/utf_string_conversions.h" |
+#include "base/threading/thread_task_runner_handle.h" |
#include "base/time/time.h" |
#include "base/trace_event/trace_event.h" |
#include "build/build_config.h" |
@@ -3136,7 +3139,7 @@ WebContentDetectionResult RenderViewImpl::detectContentAround( |
void RenderViewImpl::scheduleContentIntent(const WebURL& intent, |
bool is_main_frame) { |
// Introduce a short delay so that the user can notice the content. |
- base::MessageLoop::current()->PostDelayedTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
FROM_HERE, |
base::Bind(&RenderViewImpl::LaunchAndroidContentIntent, AsWeakPtr(), |
intent, expected_content_intent_id_, is_main_frame), |