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

Unified Diff: chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm

Issue 107303002: Make the TranslateInfoBarDelegate once again use the TranslateUIDelegate. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/translate/translate_ui_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm
===================================================================
--- chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm (revision 239110)
+++ chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm (working copy)
@@ -36,11 +36,13 @@
class MockTranslateInfoBarDelegate : public TranslateInfoBarDelegate {
public:
- MockTranslateInfoBarDelegate(TranslateInfoBarDelegate::Type type,
+ MockTranslateInfoBarDelegate(content::WebContents* web_contents,
+ TranslateInfoBarDelegate::Type type,
TranslateErrors::Type error,
PrefService* prefs,
ShortcutConfiguration config)
- : TranslateInfoBarDelegate(type, NULL, "en", "es", error, prefs, config) {
+ : TranslateInfoBarDelegate(web_contents, type, NULL, "en", "es", error,
+ prefs, config) {
}
MOCK_METHOD0(Translate, void());
@@ -93,8 +95,8 @@
[[infobar_controller_ view] removeFromSuperview];
scoped_ptr<TranslateInfoBarDelegate> delegate(
- new MockTranslateInfoBarDelegate(type, error, profile->GetPrefs(),
- config));
+ new MockTranslateInfoBarDelegate(web_contents_.get(), type, error,
+ profile->GetPrefs(), config));
scoped_ptr<InfoBar> infobar(
TranslateInfoBarDelegate::CreateInfoBar(delegate.Pass()));
if (infobar_)
« no previous file with comments | « chrome/browser/translate/translate_ui_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698