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/test_toolbar_model.h" | 5 #include "chrome/browser/ui/toolbar/test_toolbar_model.h" |
6 | 6 |
7 #include "grit/components_scaled_resources.h" | 7 #include "grit/components_scaled_resources.h" |
8 #include "ui/gfx/vector_icons_public.h" | 8 #include "ui/gfx/vector_icons_public.h" |
9 | 9 |
10 TestToolbarModel::TestToolbarModel() | 10 TestToolbarModel::TestToolbarModel() |
11 : ChromeToolbarModel(), | 11 : perform_search_term_replacement_(false), |
12 perform_search_term_replacement_(false), | |
13 security_level_(security_state::SecurityStateModel::NONE), | 12 security_level_(security_state::SecurityStateModel::NONE), |
14 #if defined(TOOLKIT_VIEWS) | 13 #if defined(TOOLKIT_VIEWS) |
15 icon_(gfx::VectorIconId::LOCATION_BAR_HTTP), | 14 icon_(gfx::VectorIconId::LOCATION_BAR_HTTP), |
16 #else | 15 #else |
17 icon_(gfx::VectorIconId::VECTOR_ICON_NONE), | 16 icon_(gfx::VectorIconId::VECTOR_ICON_NONE), |
18 #endif | 17 #endif |
19 should_display_url_(true) { | 18 should_display_url_(true) { |
20 } | 19 } |
21 | 20 |
22 TestToolbarModel::~TestToolbarModel() {} | 21 TestToolbarModel::~TestToolbarModel() {} |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 57 |
59 base::string16 TestToolbarModel::GetEVCertName() const { | 58 base::string16 TestToolbarModel::GetEVCertName() const { |
60 return (security_level_ == security_state::SecurityStateModel::EV_SECURE) | 59 return (security_level_ == security_state::SecurityStateModel::EV_SECURE) |
61 ? ev_cert_name_ | 60 ? ev_cert_name_ |
62 : base::string16(); | 61 : base::string16(); |
63 } | 62 } |
64 | 63 |
65 bool TestToolbarModel::ShouldDisplayURL() const { | 64 bool TestToolbarModel::ShouldDisplayURL() const { |
66 return should_display_url_; | 65 return should_display_url_; |
67 } | 66 } |
OLD | NEW |