OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/strings/string_piece.h" | 10 #include "base/strings/string_piece.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 } | 151 } |
152 } | 152 } |
153 } | 153 } |
154 | 154 |
155 // These are the constants for the Finch experiment. | 155 // These are the constants for the Finch experiment. |
156 const char kStudyName[] = "InterstitialSSL517"; | 156 const char kStudyName[] = "InterstitialSSL517"; |
157 const char kCondition15Control[] = "Condition15SSLControl"; | 157 const char kCondition15Control[] = "Condition15SSLControl"; |
158 const char kCondition16Firefox[] = "Condition16SSLFirefox"; | 158 const char kCondition16Firefox[] = "Condition16SSLFirefox"; |
159 const char kCondition17FancyFirefox[] = "Condition17SSLFancyFirefox"; | 159 const char kCondition17FancyFirefox[] = "Condition17SSLFancyFirefox"; |
160 const char kCondition18NoImages[] = "Condition18SSLNoImages"; | 160 const char kCondition18NoImages[] = "Condition18SSLNoImages"; |
| 161 const char kCondition19Policeman[] = "Condition19SSLPoliceman"; |
| 162 const char kCondition20Stoplight[] = "Condition20SSLStoplight"; |
| 163 const char kCondition21Badguy[] = "Condition21SSLBadguy"; |
161 | 164 |
162 } // namespace | 165 } // namespace |
163 | 166 |
164 // Note that we always create a navigation entry with SSL errors. | 167 // Note that we always create a navigation entry with SSL errors. |
165 // No error happening loading a sub-resource triggers an interstitial so far. | 168 // No error happening loading a sub-resource triggers an interstitial so far. |
166 SSLBlockingPage::SSLBlockingPage( | 169 SSLBlockingPage::SSLBlockingPage( |
167 content::WebContents* web_contents, | 170 content::WebContents* web_contents, |
168 int cert_error, | 171 int cert_error, |
169 const net::SSLInfo& ssl_info, | 172 const net::SSLInfo& ssl_info, |
170 const GURL& request_url, | 173 const GURL& request_url, |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 "moreInfo1", "moreInfo2", "moreInfo3", "moreInfo4", "moreInfo5" | 364 "moreInfo1", "moreInfo2", "moreInfo3", "moreInfo4", "moreInfo5" |
362 }; | 365 }; |
363 int i; | 366 int i; |
364 for (i = 0; i < static_cast<int>(extra_info.size()); i++) { | 367 for (i = 0; i < static_cast<int>(extra_info.size()); i++) { |
365 strings->SetString(keys[i], extra_info[i]); | 368 strings->SetString(keys[i], extra_info[i]); |
366 } | 369 } |
367 for (; i < 5; i++) { | 370 for (; i < 5; i++) { |
368 strings->SetString(keys[i], std::string()); | 371 strings->SetString(keys[i], std::string()); |
369 } | 372 } |
370 } | 373 } |
OLD | NEW |