| 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 "components/toolbar/toolbar_model_impl.h" | 5 #include "components/toolbar/toolbar_model_impl.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.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 "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 #include "components/prefs/pref_service.h" | 11 #include "components/prefs/pref_service.h" |
| 12 #include "components/security_state/security_state_model.h" | 12 #include "components/security_state/core/security_state_model.h" |
| 13 #include "components/strings/grit/components_strings.h" | 13 #include "components/strings/grit/components_strings.h" |
| 14 #include "components/toolbar/toolbar_model_delegate.h" | 14 #include "components/toolbar/toolbar_model_delegate.h" |
| 15 #include "components/url_formatter/elide_url.h" | 15 #include "components/url_formatter/elide_url.h" |
| 16 #include "components/url_formatter/url_formatter.h" | 16 #include "components/url_formatter/url_formatter.h" |
| 17 #include "net/cert/cert_status_flags.h" | 17 #include "net/cert/cert_status_flags.h" |
| 18 #include "net/cert/x509_certificate.h" | 18 #include "net/cert/x509_certificate.h" |
| 19 #include "net/ssl/ssl_connection_status_flags.h" | 19 #include "net/ssl/ssl_connection_status_flags.h" |
| 20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
| 21 #include "ui/gfx/text_elider.h" | 21 #include "ui/gfx/text_elider.h" |
| 22 #include "ui/gfx/vector_icons_public.h" | 22 #include "ui/gfx/vector_icons_public.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 ? IDS_DANGEROUS_VERBOSE_STATE | 119 ? IDS_DANGEROUS_VERBOSE_STATE |
| 120 : IDS_NOT_SECURE_VERBOSE_STATE); | 120 : IDS_NOT_SECURE_VERBOSE_STATE); |
| 121 default: | 121 default: |
| 122 return base::string16(); | 122 return base::string16(); |
| 123 } | 123 } |
| 124 } | 124 } |
| 125 | 125 |
| 126 bool ToolbarModelImpl::ShouldDisplayURL() const { | 126 bool ToolbarModelImpl::ShouldDisplayURL() const { |
| 127 return delegate_->ShouldDisplayURL(); | 127 return delegate_->ShouldDisplayURL(); |
| 128 } | 128 } |
| OLD | NEW |