Index: chrome/browser/password_manager/password_store_default.cc |
diff --git a/chrome/browser/password_manager/password_store_default.cc b/chrome/browser/password_manager/password_store_default.cc |
index 2f5c041cee46125d8ff523d8b414fab57f0a5d2b..31049ddb74b42d29525e703d9e83612a6d3ef14f 100644 |
--- a/chrome/browser/password_manager/password_store_default.cc |
+++ b/chrome/browser/password_manager/password_store_default.cc |
@@ -114,10 +114,15 @@ typedef std::vector<const PasswordForm*> PasswordForms; |
void PasswordStoreDefault::OnWebDataServiceRequestDone( |
WebDataService::Handle handle, |
- const WDTypedResult *result) { |
+ const WDTypedResult* result) { |
DCHECK(handles_.end() != handles_.find(handle)); |
DCHECK(result); |
+ if (PASSWORD_RESULT != result->GetType()) { |
+ NOTREACHED(); |
+ return; |
+ } |
+ |
handles_.erase(handle); |
if (!result) |
return; |