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

Side by Side Diff: ios/chrome/browser/infobars/infobar_utils.h

Issue 1861593005: Convert //ios 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_INFOBARS_INFOBAR_UTILS_H_ 5 #ifndef IOS_CHROME_BROWSER_INFOBARS_INFOBAR_UTILS_H_
6 #define IOS_CHROME_BROWSER_INFOBARS_INFOBAR_UTILS_H_ 6 #define IOS_CHROME_BROWSER_INFOBARS_INFOBAR_UTILS_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9 9
10 class ConfirmInfoBarDelegate; 10 class ConfirmInfoBarDelegate;
11 11
12 namespace infobars { 12 namespace infobars {
13 class InfoBar; 13 class InfoBar;
14 } 14 }
15 15
16 // Returns a confirm infobar that owns |delegate|. 16 // Returns a confirm infobar that owns |delegate|.
17 // Visible for testing. 17 // Visible for testing.
18 scoped_ptr<infobars::InfoBar> CreateConfirmInfoBar( 18 std::unique_ptr<infobars::InfoBar> CreateConfirmInfoBar(
19 scoped_ptr<ConfirmInfoBarDelegate> delegate); 19 std::unique_ptr<ConfirmInfoBarDelegate> delegate);
20 20
21 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_UTILS_H_ 21 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_UTILS_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/infobars/infobar_manager_impl.mm ('k') | ios/chrome/browser/infobars/infobar_utils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698