Index: components/infobars/test/infobar_test.cc |
diff --git a/components/infobars/test/infobar_test.cc b/components/infobars/test/infobar_test.cc |
index 4b3504ede4451fbc5b782e50298f506328e0e80d..b661b50842179606b9d3f19e51ff6156419e9094 100644 |
--- a/components/infobars/test/infobar_test.cc |
+++ b/components/infobars/test/infobar_test.cc |
@@ -28,6 +28,5 @@ const int infobars::InfoBar::kDefaultBarTargetHeight = 36; |
// ConfirmInfoBarDelegate::CreateInfoBar() return a non-NULL infobar. |
scoped_ptr<infobars::InfoBar> ConfirmInfoBarDelegate::CreateInfoBar( |
scoped_ptr<ConfirmInfoBarDelegate> delegate) { |
- return scoped_ptr<infobars::InfoBar>(new infobars::InfoBar( |
- delegate.PassAs<infobars::InfoBarDelegate>())); |
+ return scoped_ptr<infobars::InfoBar>(new infobars::InfoBar(delegate.Pass())); |
} |