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

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_views_unittest.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/autofill/autofill_dialog_views_unittest.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views_unittest.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views_unittest.cc
index 817fd55840d6f91aeb98429887abb6dc2c7b2e20..92f0a6d681f2d93462a13907fcda13f35a1a8e8e 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views_unittest.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views_unittest.cc
@@ -4,9 +4,10 @@
#include "chrome/browser/ui/views/autofill/autofill_dialog_views.h"
+#include <memory>
+
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "chrome/browser/ui/autofill/mock_autofill_dialog_view_delegate.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/views/autofill/decorated_textfield.h"
@@ -97,12 +98,12 @@ class AutofillDialogViewsTest : public TestWithBrowserView {
private:
// Fake dialog delegate and host to isolate test behavior.
web_modal::TestWebContentsModalDialogManagerDelegate dialog_delegate_;
- scoped_ptr<web_modal::TestWebContentsModalDialogHost> dialog_host_;
+ std::unique_ptr<web_modal::TestWebContentsModalDialogHost> dialog_host_;
// Mock view delegate as this file only tests the view.
testing::NiceMock<MockAutofillDialogViewDelegate> view_delegate_;
- scoped_ptr<TestAutofillDialogViews> dialog_;
+ std::unique_ptr<TestAutofillDialogViews> dialog_;
};
TEST_F(AutofillDialogViewsTest, InitialFocus) {

Powered by Google App Engine
This is Rietveld 408576698