| 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 #import "ios/chrome/browser/ui/toolbar/toolbar_model_delegate_ios.h" | 5 #import "ios/chrome/browser/ui/toolbar/toolbar_model_delegate_ios.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "components/omnibox/browser/autocomplete_classifier.h" | 8 #include "components/omnibox/browser/autocomplete_classifier.h" |
| 9 #include "components/omnibox/browser/autocomplete_input.h" | 9 #include "components/omnibox/browser/autocomplete_input.h" |
| 10 #include "components/omnibox/browser/autocomplete_match.h" | 10 #include "components/omnibox/browser/autocomplete_match.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // initialization), so nothing can fail. | 100 // initialization), so nothing can fail. |
| 101 if (!web_state) | 101 if (!web_state) |
| 102 return NO; | 102 return NO; |
| 103 auto* client = IOSSecurityStateTabHelper::FromWebState(web_state); | 103 auto* client = IOSSecurityStateTabHelper::FromWebState(web_state); |
| 104 security_state::SecurityInfo result; | 104 security_state::SecurityInfo result; |
| 105 client->GetSecurityInfo(&result); | 105 client->GetSecurityInfo(&result); |
| 106 return result.malicious_content_status != | 106 return result.malicious_content_status != |
| 107 security_state::MALICIOUS_CONTENT_STATUS_NONE; | 107 security_state::MALICIOUS_CONTENT_STATUS_NONE; |
| 108 } | 108 } |
| 109 | 109 |
| 110 gfx::VectorIconId ToolbarModelDelegateIOS::GetVectorIconOverride() const { | 110 const gfx::VectorIcon* ToolbarModelDelegateIOS::GetVectorIconOverride() const { |
| 111 return gfx::VectorIconId::VECTOR_ICON_NONE; | 111 return nullptr; |
| 112 } | 112 } |
| OLD | NEW |