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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_test.cc

Issue 2262843002: Make PasswordFormManager::best_matches_ const (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@621355_pass_creds_to_update_by_value
Patch Set: Just rebased 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/passwords/manage_passwords_test.cc
diff --git a/chrome/browser/ui/passwords/manage_passwords_test.cc b/chrome/browser/ui/passwords/manage_passwords_test.cc
index dbd8915c231cbf73db725482026f84026bc797ba..4aea89a69d02199383d3d3a40d86b1d428535c52 100644
--- a/chrome/browser/ui/passwords/manage_passwords_test.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_test.cc
@@ -4,10 +4,12 @@
#include "chrome/browser/ui/passwords/manage_passwords_test.h"
+#include <map>
#include <utility>
#include "base/bind.h"
#include "base/memory/ptr_util.h"
+#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/ui/browser.h"
@@ -48,10 +50,8 @@ void ManagePasswordsTest::ExecuteManagePasswordsCommand() {
void ManagePasswordsTest::SetupManagingPasswords() {
base::string16 kTestUsername = base::ASCIIToUTF16("test_username");
- autofill::PasswordFormMap map;
- map.insert(std::make_pair(
- kTestUsername,
- base::WrapUnique(new autofill::PasswordForm(*test_form()))));
+ std::map<base::string16, const autofill::PasswordForm*> map;
+ map.insert(std::make_pair(kTestUsername, test_form()));
GetController()->OnPasswordAutofilled(map, map.begin()->second->origin,
nullptr);
}

Powered by Google App Engine
This is Rietveld 408576698