OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/views/platform_keys_certificate_selector_chromeos.h" | 5 #include "chrome/browser/ui/views/platform_keys_certificate_selector_chromeos.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
8 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
9 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
10 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/grit/generated_resources.h" | 13 #include "chrome/grit/generated_resources.h" |
12 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
13 #include "ui/gfx/font.h" | 15 #include "ui/gfx/font.h" |
14 #include "ui/views/controls/styled_label.h" | 16 #include "ui/views/controls/styled_label.h" |
15 | 17 |
16 namespace chromeos { | 18 namespace chromeos { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 const base::Callback<void(const scoped_refptr<net::X509Certificate>&)>& | 73 const base::Callback<void(const scoped_refptr<net::X509Certificate>&)>& |
72 callback) { | 74 callback) { |
73 PlatformKeysCertificateSelector* selector = | 75 PlatformKeysCertificateSelector* selector = |
74 new PlatformKeysCertificateSelector(certificates, extension_name, | 76 new PlatformKeysCertificateSelector(certificates, extension_name, |
75 callback, web_contents); | 77 callback, web_contents); |
76 selector->Init(); | 78 selector->Init(); |
77 selector->Show(); | 79 selector->Show(); |
78 } | 80 } |
79 | 81 |
80 } // namespace chromeos | 82 } // namespace chromeos |
OLD | NEW |