Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / chrome / browser / ui / toolbar / test_toolbar_model.cc
blobb345a1b9e82b398c61263593eef34ecaf5d94e1a
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
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/toolbar/test_toolbar_model.h"
7 #include "grit/theme_resources.h"
9 TestToolbarModel::TestToolbarModel()
10 : ToolbarModel(),
11 perform_search_term_replacement_(false),
12 security_level_(ConnectionSecurityHelper::NONE),
13 icon_(IDR_LOCATION_BAR_HTTP),
14 should_display_url_(true) {
17 TestToolbarModel::~TestToolbarModel() {}
19 base::string16 TestToolbarModel::GetText() const {
20 return text_;
23 base::string16 TestToolbarModel::GetFormattedURL(size_t* prefix_end) const {
24 return text_;
27 base::string16 TestToolbarModel::GetCorpusNameForMobile() const {
28 return base::string16();
31 GURL TestToolbarModel::GetURL() const {
32 return url_;
35 bool TestToolbarModel::WouldPerformSearchTermReplacement(
36 bool ignore_editing) const {
37 return perform_search_term_replacement_;
40 ConnectionSecurityHelper::SecurityLevel TestToolbarModel::GetSecurityLevel(
41 bool ignore_editing) const {
42 return security_level_;
45 int TestToolbarModel::GetIcon() const {
46 return icon_;
49 int TestToolbarModel::GetIconForSecurityLevel(
50 ConnectionSecurityHelper::SecurityLevel level) const {
51 return icon_;
54 base::string16 TestToolbarModel::GetEVCertName() const {
55 return (security_level_ == ConnectionSecurityHelper::EV_SECURE)
56 ? ev_cert_name_
57 : base::string16();
60 bool TestToolbarModel::ShouldDisplayURL() const {
61 return should_display_url_;