OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/gtk/options/passwords_exceptions_page_gtk.h" | 5 #include "chrome/browser/ui/gtk/options/passwords_exceptions_page_gtk.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/stl_util-inl.h" | 9 #include "base/stl_util-inl.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/prefs/pref_service.h" | 11 #include "chrome/browser/prefs/pref_service.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/ui/gtk/gtk_tree.h" | 13 #include "chrome/browser/ui/gtk/gtk_tree.h" |
14 #include "chrome/browser/ui/gtk/gtk_util.h" | 14 #include "chrome/browser/ui/gtk/gtk_util.h" |
15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
16 #include "chrome/common/url_constants.h" | 16 #include "chrome/common/url_constants.h" |
17 #include "gfx/gtk_util.h" | |
18 #include "grit/app_resources.h" | 17 #include "grit/app_resources.h" |
19 #include "grit/chromium_strings.h" | 18 #include "grit/chromium_strings.h" |
20 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
21 #include "net/base/net_util.h" | 20 #include "net/base/net_util.h" |
22 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
| 22 #include "ui/gfx/gtk_util.h" |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 // Column ids for |exception_list_store_|. | 26 // Column ids for |exception_list_store_|. |
27 enum { | 27 enum { |
28 COL_SITE, | 28 COL_SITE, |
29 COL_COUNT, | 29 COL_COUNT, |
30 }; | 30 }; |
31 | 31 |
32 } // anonymous namespace | 32 } // anonymous namespace |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 LOG(ERROR) << "No password store! Cannot display exceptions."; | 193 LOG(ERROR) << "No password store! Cannot display exceptions."; |
194 } | 194 } |
195 | 195 |
196 void | 196 void |
197 PasswordsExceptionsPageGtk::ExceptionListPopulater::OnPasswordStoreRequestDone( | 197 PasswordsExceptionsPageGtk::ExceptionListPopulater::OnPasswordStoreRequestDone( |
198 int handle, const std::vector<webkit_glue::PasswordForm*>& result) { | 198 int handle, const std::vector<webkit_glue::PasswordForm*>& result) { |
199 DCHECK_EQ(pending_login_query_, handle); | 199 DCHECK_EQ(pending_login_query_, handle); |
200 pending_login_query_ = 0; | 200 pending_login_query_ = 0; |
201 page_->SetExceptionList(result); | 201 page_->SetExceptionList(result); |
202 } | 202 } |
OLD | NEW |