| 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/test_toolbar_model.h" | 5 #include "components/toolbar/test_toolbar_model.h" |
| 6 | 6 |
| 7 #if defined(TOOLKIT_VIEWS) | 7 #if defined(TOOLKIT_VIEWS) |
| 8 #include "components/toolbar/vector_icons.h" // nogncheck | 8 #include "components/toolbar/vector_icons.h" // nogncheck |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 } | 40 } |
| 41 | 41 |
| 42 base::string16 TestToolbarModel::GetEVCertName() const { | 42 base::string16 TestToolbarModel::GetEVCertName() const { |
| 43 return (security_level_ == security_state::EV_SECURE) ? ev_cert_name_ | 43 return (security_level_ == security_state::EV_SECURE) ? ev_cert_name_ |
| 44 : base::string16(); | 44 : base::string16(); |
| 45 } | 45 } |
| 46 | 46 |
| 47 bool TestToolbarModel::ShouldDisplayURL() const { | 47 bool TestToolbarModel::ShouldDisplayURL() const { |
| 48 return should_display_url_; | 48 return should_display_url_; |
| 49 } | 49 } |
| 50 |
| 51 bool TestToolbarModel::IsOfflinePage() const { |
| 52 return offline_page_; |
| 53 } |
| OLD | NEW |