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

Unified Diff: chrome/browser/ui/cocoa/passwords/passwords_bubble_browsertest.mm

Issue 2253233005: Change ScopedVector to vector<unique_ptr> in the password's UI code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android+ Created 4 years, 4 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/cocoa/passwords/passwords_bubble_browsertest.mm
diff --git a/chrome/browser/ui/cocoa/passwords/passwords_bubble_browsertest.mm b/chrome/browser/ui/cocoa/passwords/passwords_bubble_browsertest.mm
index ccc293b00f0b84d1b52d0fa6195c62d0603c7787..df6a6bcefce0b1779b1844fcf99d9982807ff702 100644
--- a/chrome/browser/ui/cocoa/passwords/passwords_bubble_browsertest.mm
+++ b/chrome/browser/ui/cocoa/passwords/passwords_bubble_browsertest.mm
@@ -131,8 +131,8 @@ IN_PROC_BROWSER_TEST_F(ManagePasswordsBubbleTest, DoubleOpenBubble) {
IN_PROC_BROWSER_TEST_F(ManagePasswordsBubbleTest, DoubleOpenDifferentBubbles) {
// Open the autosignin bubble first.
DoWithSwizzledNSWindow(^{
- ScopedVector<autofill::PasswordForm> local_credentials;
- local_credentials.push_back(new autofill::PasswordForm(*test_form()));
+ std::vector<std::unique_ptr<autofill::PasswordForm>> local_credentials;
+ local_credentials.emplace_back(new autofill::PasswordForm(*test_form()));
SetupAutoSignin(std::move(local_credentials));
});
EXPECT_TRUE(controller());

Powered by Google App Engine
This is Rietveld 408576698