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

Unified Diff: chrome/browser/ui/views/infobars/legacy_infobars_mac.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/views/infobars/legacy_infobars_mac.cc
diff --git a/chrome/browser/ui/views/infobars/legacy_infobars_mac.cc b/chrome/browser/ui/views/infobars/legacy_infobars_mac.cc
index 8c550535e83d1b0d0c3caa0dda505eae7329ccfb..e748a9f5132dabddb8b484cfd1212f3cdd5552c8 100644
--- a/chrome/browser/ui/views/infobars/legacy_infobars_mac.cc
+++ b/chrome/browser/ui/views/infobars/legacy_infobars_mac.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/memory/ptr_util.h"
#include "chrome/browser/password_manager/save_password_infobar_delegate.h"
#include "chrome/browser/translate/chrome_translate_client.h"
#include "chrome/browser/ui/views/infobars/confirm_infobar.h"
@@ -13,13 +14,13 @@
// elsewhere for OS_MACOSX, but aren't otherwise needed for a views browser.
// TODO(tapted): Delete this file when Mac uses the bubbles by default.
-scoped_ptr<infobars::InfoBar> CreateSavePasswordInfoBar(
- scoped_ptr<SavePasswordInfoBarDelegate> delegate) {
- return make_scoped_ptr(new ConfirmInfoBar(std::move(delegate)));
+std::unique_ptr<infobars::InfoBar> CreateSavePasswordInfoBar(
+ std::unique_ptr<SavePasswordInfoBarDelegate> delegate) {
+ return base::WrapUnique(new ConfirmInfoBar(std::move(delegate)));
}
-scoped_ptr<infobars::InfoBar> ChromeTranslateClient::CreateInfoBar(
- scoped_ptr<translate::TranslateInfoBarDelegate> delegate) const {
+std::unique_ptr<infobars::InfoBar> ChromeTranslateClient::CreateInfoBar(
+ std::unique_ptr<translate::TranslateInfoBarDelegate> delegate) const {
NOTREACHED();
return nullptr;
}
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_view.cc ('k') | chrome/browser/ui/views/javascript_app_modal_dialog_views_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698