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

Unified Diff: chrome/browser/ui/android/infobars/confirm_infobar.cc

Issue 657333002: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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 | « no previous file | chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/infobars/confirm_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/confirm_infobar.cc b/chrome/browser/ui/android/infobars/confirm_infobar.cc
index 90aadfb1f774197b3db3a2483abeb950770dac31..5db7823287c7964e294339a0e1f50fb34c83dae7 100644
--- a/chrome/browser/ui/android/infobars/confirm_infobar.cc
+++ b/chrome/browser/ui/android/infobars/confirm_infobar.cc
@@ -17,15 +17,15 @@
// static
scoped_ptr<infobars::InfoBar> ConfirmInfoBarDelegate::CreateInfoBar(
scoped_ptr<ConfirmInfoBarDelegate> delegate) {
- return scoped_ptr<infobars::InfoBar>(new ConfirmInfoBar(delegate.Pass()));
+ return make_scoped_ptr(new ConfirmInfoBar(delegate.Pass()));
}
// ConfirmInfoBar -------------------------------------------------------------
ConfirmInfoBar::ConfirmInfoBar(scoped_ptr<ConfirmInfoBarDelegate> delegate)
- : InfoBarAndroid(delegate.PassAs<infobars::InfoBarDelegate>()),
- java_confirm_delegate_() {}
+ : InfoBarAndroid(delegate.Pass()), java_confirm_delegate_() {
+}
ConfirmInfoBar::~ConfirmInfoBar() {
}
« no previous file with comments | « no previous file | chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698