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

Unified Diff: chrome/browser/ui/android/infobars/data_reduction_proxy_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
Index: chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc b/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc
index 238f0a9aac4abce4eda8011d13cd403fa01566be..4389c92ddf851dbddb3fe8556a4e1ebc55173c7e 100644
--- a/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc
+++ b/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc
@@ -31,8 +31,7 @@ bool DataReductionProxyInfoBar::Register(JNIEnv* env) {
DataReductionProxyInfoBar::DataReductionProxyInfoBar(
scoped_ptr<DataReductionProxyInfoBarDelegate> delegate)
- : ConfirmInfoBar(delegate.PassAs<ConfirmInfoBarDelegate>()),
- java_data_reduction_proxy_delegate_() {
+ : ConfirmInfoBar(delegate.Pass()), java_data_reduction_proxy_delegate_() {
}
DataReductionProxyInfoBar::~DataReductionProxyInfoBar() {
« no previous file with comments | « chrome/browser/ui/android/infobars/confirm_infobar.cc ('k') | chrome/browser/ui/android/infobars/translate_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698