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

Unified Diff: chrome/browser/password_manager/password_form_data.cc

Issue 10885019: Fix for failing unit tests PasswordStoreDefaultTest.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change only the method we copy the vector into a set Created 8 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
« no previous file with comments | « build/android/gtest_filter/unit_tests_disabled ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager/password_form_data.cc
diff --git a/chrome/browser/password_manager/password_form_data.cc b/chrome/browser/password_manager/password_form_data.cc
index b919770efc1f8d166beb72e9e6cc5b9f85ee2008..decd520ea8be476d91f2b559a54c5f91d91b69ed 100644
--- a/chrome/browser/password_manager/password_form_data.cc
+++ b/chrome/browser/password_manager/password_form_data.cc
@@ -76,7 +76,9 @@ bool ContainsSamePasswordFormsPtr(
const std::vector<PasswordForm*>& second) {
if (first.size() != second.size())
return false;
- SetOfForms expectations(first.begin(), first.end());
+ SetOfForms expectations;
+ std::copy(first.begin(), first.end(), std::inserter(expectations,
+ expectations.begin()));
Ilya Sherman 2012/08/29 22:53:51 nit: Please add a comment documenting why this is
Ramya 2012/08/29 23:01:34 Done.
for (unsigned int i = 0; i < second.size(); ++i) {
const PasswordForm* actual = second[i];
bool found_match = false;
« no previous file with comments | « build/android/gtest_filter/unit_tests_disabled ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698