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

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

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 0153ce7871308f18335a4c5fe7420922d222e3e5..ce7753a980995513a3c3e2a75b089620ed146d49 100644
--- a/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc
+++ b/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc
@@ -32,7 +32,7 @@ bool DataReductionProxyInfoBar::Register(JNIEnv* env) {
}
DataReductionProxyInfoBar::DataReductionProxyInfoBar(
- scoped_ptr<DataReductionProxyInfoBarDelegateAndroid> delegate)
+ std::unique_ptr<DataReductionProxyInfoBarDelegateAndroid> delegate)
: ConfirmInfoBar(std::move(delegate)),
java_data_reduction_proxy_delegate_() {}
@@ -56,11 +56,11 @@ DataReductionProxyInfoBar::GetDelegate() {
// DataReductionProxyInfoBarDelegate:
// static
-scoped_ptr<infobars::InfoBar>
+std::unique_ptr<infobars::InfoBar>
DataReductionProxyInfoBarDelegateAndroid::CreateInfoBar(
infobars::InfoBarManager* infobar_manager,
- scoped_ptr<DataReductionProxyInfoBarDelegateAndroid> delegate) {
- return scoped_ptr<infobars::InfoBar>(
+ std::unique_ptr<DataReductionProxyInfoBarDelegateAndroid> delegate) {
+ return std::unique_ptr<infobars::InfoBar>(
new DataReductionProxyInfoBar(std::move(delegate)));
}

Powered by Google App Engine
This is Rietveld 408576698