Make the TranslateInfoBarDelegate once again use the TranslateUIDelegate.
commitc8c149a756377bec5bb48a3cb0b8403ab713500f
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 7 Dec 2013 03:42:20 +0000 (7 03:42 +0000)
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 7 Dec 2013 03:42:20 +0000 (7 03:42 +0000)
treeb1b70a324b1db2275828af6ecbfc18bb67586948
parentde22ffeae755a41e63c80d581ec899e944c488c5
Make the TranslateInfoBarDelegate once again use the TranslateUIDelegate.

This is basically a revert of r234759.  I realized that I can simply pass in an
appropriate WebContents* to the TranslateInfoBarDelegate constructor, instead of
waiting until web_contents() will return something non-NULL.  I feel dumb for
not thinking of this sooner.

BUG=62154
TEST=none
R=hajimehoshi@chromium.org, miguelg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239307 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/translate/translate_browser_metrics.cc
chrome/browser/translate/translate_browser_metrics.h
chrome/browser/translate/translate_infobar_delegate.cc
chrome/browser/translate/translate_infobar_delegate.h
chrome/browser/translate/translate_manager_browsertest.cc
chrome/browser/translate/translate_ui_delegate.cc
chrome/browser/translate/translate_ui_delegate.h
chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm