Move TranslateManager::IsTranslatableURL to be a client-level concept.
commit552dad759b4f6b2777fa0c09ae4a39fbf13a7d45
authorblundell@chromium.org <blundell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 8 Apr 2014 16:02:05 +0000 (8 16:02 +0000)
committerblundell@chromium.org <blundell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 8 Apr 2014 16:02:05 +0000 (8 16:02 +0000)
tree37dc11e16c67d7082ea1b782a38b32815f80e30d
parentc2758de46c14226823a2473ed9fb81608723c2ab
Move TranslateManager::IsTranslatableURL to be a client-level concept.

The concept of whether a given URL is translatable is an embedder-level one.
This CL does the following:
- Moves TranslateManager::IsTranslatableURL to TranslateService and updates
  //chrome callers to call the latter.
- Adds TranslateClient::IsTranslatableURL and has TranslateManager call that.
- Moves TranslateManager unittest (only testing IsTranslatableURL) to be a
  unittest on TranslateService.

BUG=360017
TBR=jochen

Review URL: https://codereview.chromium.org/225263017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262427 0039d316-1c4b-4281-b951-d872f2087c98
12 files changed:
chrome/browser/renderer_context_menu/render_view_context_menu.cc
chrome/browser/translate/translate_manager.cc
chrome/browser/translate/translate_manager.h
chrome/browser/translate/translate_manager_render_view_host_unittest.cc
chrome/browser/translate/translate_service.cc
chrome/browser/translate/translate_service.h
chrome/browser/translate/translate_service_unittest.cc [moved from chrome/browser/translate/translate_manager_unittest.cc with 53% similarity]
chrome/browser/translate/translate_tab_helper.cc
chrome/browser/translate/translate_tab_helper.h
chrome/browser/ui/webui/translate_internals/translate_internals_handler.cc
chrome/chrome_tests_unit.gypi
components/translate/core/browser/translate_client.h