OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/ssl/ssl_blocking_page.h" | 5 #include "chrome/browser/ssl/ssl_blocking_page.h" |
6 | 6 |
| 7 #include "app/l10n_util.h" |
7 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
8 #include "base/histogram.h" | 9 #include "base/histogram.h" |
9 #include "base/string_piece.h" | 10 #include "base/string_piece.h" |
10 #include "base/values.h" | 11 #include "base/values.h" |
11 #include "chrome/browser/browser.h" | 12 #include "chrome/browser/browser.h" |
12 #include "chrome/browser/cert_store.h" | 13 #include "chrome/browser/cert_store.h" |
13 #include "chrome/browser/dom_operation_notification_details.h" | 14 #include "chrome/browser/dom_operation_notification_details.h" |
14 #include "chrome/browser/ssl/ssl_error_info.h" | 15 #include "chrome/browser/ssl/ssl_error_info.h" |
15 #include "chrome/browser/tab_contents/navigation_controller.h" | 16 #include "chrome/browser/tab_contents/navigation_controller.h" |
16 #include "chrome/browser/tab_contents/navigation_entry.h" | 17 #include "chrome/browser/tab_contents/navigation_entry.h" |
17 #include "chrome/browser/tab_contents/tab_contents.h" | 18 #include "chrome/browser/tab_contents/tab_contents.h" |
18 #include "chrome/common/jstemplate_builder.h" | 19 #include "chrome/common/jstemplate_builder.h" |
19 #include "chrome/common/l10n_util.h" | |
20 #include "chrome/common/notification_service.h" | 20 #include "chrome/common/notification_service.h" |
21 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
22 #include "chrome/common/pref_service.h" | 22 #include "chrome/common/pref_service.h" |
23 #include "grit/browser_resources.h" | 23 #include "grit/browser_resources.h" |
24 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 enum SSLBlockingPageEvent { | 28 enum SSLBlockingPageEvent { |
29 SHOW, | 29 SHOW, |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 L"moreInfo1", L"moreInfo2", L"moreInfo3", L"moreInfo4", L"moreInfo5" | 150 L"moreInfo1", L"moreInfo2", L"moreInfo3", L"moreInfo4", L"moreInfo5" |
151 }; | 151 }; |
152 int i; | 152 int i; |
153 for (i = 0; i < static_cast<int>(extra_info.size()); i++) { | 153 for (i = 0; i < static_cast<int>(extra_info.size()); i++) { |
154 strings->SetString(keys[i], extra_info[i]); | 154 strings->SetString(keys[i], extra_info[i]); |
155 } | 155 } |
156 for (;i < 5; i++) { | 156 for (;i < 5; i++) { |
157 strings->SetString(keys[i], L""); | 157 strings->SetString(keys[i], L""); |
158 } | 158 } |
159 } | 159 } |
OLD | NEW |