Eliminate TranslateManager listening to //chrome-level notifications.
commite8a9fdabfbd4cab6bbd61fc763fa75678f247aa8
authorblundell@chromium.org <blundell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 8 Apr 2014 08:53:28 +0000 (8 08:53 +0000)
committerblundell@chromium.org <blundell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 8 Apr 2014 08:53:28 +0000 (8 08:53 +0000)
treeca79f8705b0620491fde702f70e2e50954917fcc
parent244be13cb0df5230da200e459cbefae95fa15657
Eliminate TranslateManager listening to //chrome-level notifications.

The TAB_LANGUAGE_DETERMINED and PAGE_TRANSLATED notifications are sent by
TranslateTabHelper on receiving //chrome-level IPC from the renderer. This CL
exposes new public APIs on TranslateManager and has TranslateTabHelper call
these APIs on receiving the IPC instead of TranslateManager listen for the
notifications that TranslateTabHelper is sending.

BUG=359998

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262357 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/translate/translate_manager.cc
chrome/browser/translate/translate_manager.h
chrome/browser/translate/translate_tab_helper.cc