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

Side by Side Diff: components/translate/content/renderer/translate_helper.cc

Issue 1970833002: Fix include path for moved thread_task_runner_handle.h header in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393009 Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/translate/content/renderer/translate_helper.h" 5 #include "components/translate/content/renderer/translate_helper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/metrics/histogram_macros.h" 11 #include "base/metrics/histogram_macros.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
15 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "base/thread_task_runner_handle.h" 16 #include "base/threading/thread_task_runner_handle.h"
17 #include "components/translate/content/common/translate_messages.h" 17 #include "components/translate/content/common/translate_messages.h"
18 #include "components/translate/content/renderer/renderer_cld_data_provider.h" 18 #include "components/translate/content/renderer/renderer_cld_data_provider.h"
19 #include "components/translate/content/renderer/renderer_cld_data_provider_facto ry.h" 19 #include "components/translate/content/renderer/renderer_cld_data_provider_facto ry.h"
20 #include "components/translate/content/renderer/renderer_cld_utils.h" 20 #include "components/translate/content/renderer/renderer_cld_utils.h"
21 #include "components/translate/core/common/translate_constants.h" 21 #include "components/translate/core/common/translate_constants.h"
22 #include "components/translate/core/common/translate_metrics.h" 22 #include "components/translate/core/common/translate_metrics.h"
23 #include "components/translate/core/common/translate_util.h" 23 #include "components/translate/core/common/translate_util.h"
24 #include "components/translate/core/language_detection/language_detection_util.h " 24 #include "components/translate/core/language_detection/language_detection_util.h "
25 #include "content/public/common/content_constants.h" 25 #include "content/public/common/content_constants.h"
26 #include "content/public/common/url_constants.h" 26 #include "content/public/common/url_constants.h"
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 // this, everything should start being ON_TIME. This should never run more 632 // this, everything should start being ON_TIME. This should never run more
633 // than twice in a page load, under any conditions. 633 // than twice in a page load, under any conditions.
634 // Also note that language detection is triggered off of a delay AFTER the 634 // Also note that language detection is triggered off of a delay AFTER the
635 // page load completed event has fired, making this very much off the critical 635 // page load completed event has fired, making this very much off the critical
636 // path. 636 // path.
637 content::RenderThread::Get()->UpdateHistograms( 637 content::RenderThread::Get()->UpdateHistograms(
638 content::kHistogramSynchronizerReservedSequenceNumber); 638 content::kHistogramSynchronizerReservedSequenceNumber);
639 } 639 }
640 640
641 } // namespace translate 641 } // namespace translate
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698