OLD | NEW |
---|---|
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/ui/toolbar/toolbar_model_impl.h" | 5 #include "chrome/browser/ui/toolbar/toolbar_model_impl.h" |
6 | 6 |
7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" | 10 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" |
(...skipping 11 matching lines...) Expand all Loading... | |
22 #include "components/url_formatter/elide_url.h" | 22 #include "components/url_formatter/elide_url.h" |
23 #include "components/url_formatter/url_formatter.h" | 23 #include "components/url_formatter/url_formatter.h" |
24 #include "content/public/browser/cert_store.h" | 24 #include "content/public/browser/cert_store.h" |
25 #include "content/public/browser/navigation_controller.h" | 25 #include "content/public/browser/navigation_controller.h" |
26 #include "content/public/browser/navigation_entry.h" | 26 #include "content/public/browser/navigation_entry.h" |
27 #include "content/public/browser/web_contents.h" | 27 #include "content/public/browser/web_contents.h" |
28 #include "content/public/browser/web_ui.h" | 28 #include "content/public/browser/web_ui.h" |
29 #include "content/public/common/content_constants.h" | 29 #include "content/public/common/content_constants.h" |
30 #include "content/public/common/ssl_status.h" | 30 #include "content/public/common/ssl_status.h" |
31 #include "grit/components_scaled_resources.h" | 31 #include "grit/components_scaled_resources.h" |
32 #include "grit/components_strings.h" | |
mmenke
2015/11/30 23:29:10
Why is this one needed? This file doesn't use a s
blundell
2015/12/01 11:33:44
Good catch. IDS_SECURE_CONNECTION_EV was buried am
| |
32 #include "grit/theme_resources.h" | 33 #include "grit/theme_resources.h" |
33 #include "net/cert/cert_status_flags.h" | 34 #include "net/cert/cert_status_flags.h" |
34 #include "net/cert/x509_certificate.h" | 35 #include "net/cert/x509_certificate.h" |
35 #include "net/ssl/ssl_connection_status_flags.h" | 36 #include "net/ssl/ssl_connection_status_flags.h" |
36 #include "ui/base/l10n/l10n_util.h" | 37 #include "ui/base/l10n/l10n_util.h" |
37 #include "ui/gfx/text_elider.h" | 38 #include "ui/gfx/text_elider.h" |
38 #include "ui/gfx/vector_icons_public.h" | 39 #include "ui/gfx/vector_icons_public.h" |
39 | 40 |
40 using content::NavigationController; | 41 using content::NavigationController; |
41 using content::NavigationEntry; | 42 using content::NavigationEntry; |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
274 | 275 |
275 // Otherwise, extract search terms for HTTPS pages that do not have a security | 276 // Otherwise, extract search terms for HTTPS pages that do not have a security |
276 // error. | 277 // error. |
277 SecurityStateModel::SecurityLevel security_level = | 278 SecurityStateModel::SecurityLevel security_level = |
278 GetSecurityLevel(ignore_editing); | 279 GetSecurityLevel(ignore_editing); |
279 return ((security_level == SecurityStateModel::NONE) || | 280 return ((security_level == SecurityStateModel::NONE) || |
280 (security_level == SecurityStateModel::SECURITY_ERROR)) | 281 (security_level == SecurityStateModel::SECURITY_ERROR)) |
281 ? base::string16() | 282 ? base::string16() |
282 : search_terms; | 283 : search_terms; |
283 } | 284 } |
OLD | NEW |