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/gtk/options/passwords_page_gtk.h" | 5 #include "chrome/browser/gtk/options/passwords_page_gtk.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "app/gtk_util.h" | 9 #include "app/gtk_util.h" |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
11 #include "base/stl_util-inl.h" | 11 #include "base/stl_util-inl.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "chrome/browser/gtk/gtk_tree.h" | 13 #include "chrome/browser/gtk/gtk_tree.h" |
14 #include "chrome/browser/gtk/gtk_util.h" | 14 #include "chrome/browser/gtk/gtk_util.h" |
15 #include "chrome/browser/pref_service.h" | 15 #include "chrome/browser/prefs/pref_service.h" |
16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
17 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
18 #include "gfx/gtk_util.h" | 18 #include "gfx/gtk_util.h" |
19 #include "grit/app_resources.h" | 19 #include "grit/app_resources.h" |
20 #include "grit/chromium_strings.h" | 20 #include "grit/chromium_strings.h" |
21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
22 #include "net/base/net_util.h" | 22 #include "net/base/net_util.h" |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 PasswordStore* store = page_->GetPasswordStore(); | 309 PasswordStore* store = page_->GetPasswordStore(); |
310 pending_login_query_ = store->GetAutofillableLogins(this); | 310 pending_login_query_ = store->GetAutofillableLogins(this); |
311 } | 311 } |
312 | 312 |
313 void PasswordsPageGtk::PasswordListPopulater::OnPasswordStoreRequestDone( | 313 void PasswordsPageGtk::PasswordListPopulater::OnPasswordStoreRequestDone( |
314 int handle, const std::vector<webkit_glue::PasswordForm*>& result) { | 314 int handle, const std::vector<webkit_glue::PasswordForm*>& result) { |
315 DCHECK_EQ(pending_login_query_, handle); | 315 DCHECK_EQ(pending_login_query_, handle); |
316 pending_login_query_ = 0; | 316 pending_login_query_ = 0; |
317 page_->SetPasswordList(result); | 317 page_->SetPasswordList(result); |
318 } | 318 } |
OLD | NEW |