Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Side by Side Diff: chrome/browser/ui/toolbar/test_toolbar_model.cc

Issue 1578193002: Remove ChromeToolbarModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add DEPS file Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/test_toolbar_model.h ('k') | chrome/browser/ui/toolbar/toolbar_model_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698