Pass a WebContents* to infobar delegate Create() functions/constructors instead
commitb8fdbd943bf4c18267488296841d5f672d8786e8
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 5 Dec 2013 18:58:42 +0000 (5 18:58 +0000)
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 5 Dec 2013 18:58:42 +0000 (5 18:58 +0000)
tree6507cd7789cf37dd713f6ebf159ff89fc34bff88
parent796b9899fcfd7c84235d2ba4a15e4c14e3fdd494
Pass a WebContents* to infobar delegate Create() functions/constructors instead
of getting the WebContents from the InfoBarService or using web_contents().  The
former is mainly a simplification, the latter will be illegal once the infobar
refactor lands (and caused the crash in bug 325216).

This will also allow me to subsequently revert r234759 because I can just pass
in the appropriate WebContents*.  (I actually could already do so today, but to
my shame didn't think of doing so.)

BUG=325216
TEST=none
R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239003 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/extensions/extension_infobar_delegate.cc
chrome/browser/extensions/extension_infobar_delegate.h
chrome/browser/infobars/infobar_extension_api.cc
chrome/browser/translate/translate_infobar_delegate.cc
chrome/browser/translate/translate_infobar_delegate.h
chrome/browser/translate/translate_manager.cc
chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android.cc
chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android.h
chrome/browser/ui/auto_login_infobar_delegate.cc
chrome/browser/ui/auto_login_infobar_delegate.h
chrome/browser/ui/auto_login_prompter.cc