| OLD | NEW |
| 1 // Copyright (c) 2010 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/dom_ui/passwords_exceptions_handler.h" | 5 #include "chrome/browser/dom_ui/passwords_exceptions_handler.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/stl_util-inl.h" | 9 #include "base/stl_util-inl.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/browser/pref_service.h" | 13 #include "chrome/browser/prefs/pref_service.h" |
| 14 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
| 15 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
| 16 #include "grit/chromium_strings.h" | 16 #include "grit/chromium_strings.h" |
| 17 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
| 18 #include "net/base/net_util.h" | 18 #include "net/base/net_util.h" |
| 19 | 19 |
| 20 PasswordsExceptionsHandler::PasswordsExceptionsHandler() | 20 PasswordsExceptionsHandler::PasswordsExceptionsHandler() |
| 21 : ALLOW_THIS_IN_INITIALIZER_LIST(populater_(this)), | 21 : ALLOW_THIS_IN_INITIALIZER_LIST(populater_(this)), |
| 22 ALLOW_THIS_IN_INITIALIZER_LIST(exception_populater_(this)) { | 22 ALLOW_THIS_IN_INITIALIZER_LIST(exception_populater_(this)) { |
| 23 } | 23 } |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 } | 187 } |
| 188 | 188 |
| 189 void PasswordsExceptionsHandler::PasswordExceptionListPopulater:: | 189 void PasswordsExceptionsHandler::PasswordExceptionListPopulater:: |
| 190 OnPasswordStoreRequestDone(int handle, | 190 OnPasswordStoreRequestDone(int handle, |
| 191 const std::vector<webkit_glue::PasswordForm*>& result) { | 191 const std::vector<webkit_glue::PasswordForm*>& result) { |
| 192 DCHECK_EQ(pending_login_query_, handle); | 192 DCHECK_EQ(pending_login_query_, handle); |
| 193 pending_login_query_ = 0; | 193 pending_login_query_ = 0; |
| 194 page_->password_exception_list_ = result; | 194 page_->password_exception_list_ = result; |
| 195 page_->SetPasswordExceptionList(); | 195 page_->SetPasswordExceptionList(); |
| 196 } | 196 } |
| OLD | NEW |