| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/password_manager/password_form_manager.h" | 5 #include "chrome/browser/password_manager/password_form_manager.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/histogram.h" | 9 #include "base/histogram.h" |
| 10 #include "base/string_split.h" |
| 10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 11 #include "chrome/browser/password_manager/password_manager.h" | 12 #include "chrome/browser/password_manager/password_manager.h" |
| 12 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profile.h" |
| 13 #include "webkit/glue/password_form_dom_manager.h" | 14 #include "webkit/glue/password_form_dom_manager.h" |
| 14 | 15 |
| 15 using base::Time; | 16 using base::Time; |
| 16 using webkit_glue::PasswordForm; | 17 using webkit_glue::PasswordForm; |
| 17 using webkit_glue::PasswordFormMap; | 18 using webkit_glue::PasswordFormMap; |
| 18 | 19 |
| 19 PasswordFormManager::PasswordFormManager(Profile* profile, | 20 PasswordFormManager::PasswordFormManager(Profile* profile, |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 return score; | 479 return score; |
| 479 } | 480 } |
| 480 | 481 |
| 481 void PasswordFormManager::SubmitPassed() { | 482 void PasswordFormManager::SubmitPassed() { |
| 482 submit_result_ = kSubmitResultPassed; | 483 submit_result_ = kSubmitResultPassed; |
| 483 } | 484 } |
| 484 | 485 |
| 485 void PasswordFormManager::SubmitFailed() { | 486 void PasswordFormManager::SubmitFailed() { |
| 486 submit_result_ = kSubmitResultFailed; | 487 submit_result_ = kSubmitResultFailed; |
| 487 } | 488 } |
| OLD | NEW |