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

Side by Side Diff: components/toolbar/test_toolbar_model.cc

Issue 2076303002: Delete query in omnibox code. R.I.P. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused header. Created 4 years, 6 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
« no previous file with comments | « components/toolbar/test_toolbar_model.h ('k') | components/toolbar/toolbar_model.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/toolbar/test_toolbar_model.h" 5 #include "components/toolbar/test_toolbar_model.h"
6 6
7 #include "components/grit/components_scaled_resources.h" 7 #include "components/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()
(...skipping 10 matching lines...) Expand all
21 TestToolbarModel::~TestToolbarModel() {} 21 TestToolbarModel::~TestToolbarModel() {}
22 22
23 base::string16 TestToolbarModel::GetText() const { 23 base::string16 TestToolbarModel::GetText() const {
24 return text_; 24 return text_;
25 } 25 }
26 26
27 base::string16 TestToolbarModel::GetFormattedURL(size_t* prefix_end) const { 27 base::string16 TestToolbarModel::GetFormattedURL(size_t* prefix_end) const {
28 return text_; 28 return text_;
29 } 29 }
30 30
31 base::string16 TestToolbarModel::GetCorpusNameForMobile() const {
32 return base::string16();
33 }
34
35 GURL TestToolbarModel::GetURL() const { 31 GURL TestToolbarModel::GetURL() const {
36 return url_; 32 return url_;
37 } 33 }
38 34
39 bool TestToolbarModel::WouldPerformSearchTermReplacement( 35 bool TestToolbarModel::WouldPerformSearchTermReplacement(
40 bool ignore_editing) const { 36 bool ignore_editing) const {
41 return perform_search_term_replacement_; 37 return perform_search_term_replacement_;
42 } 38 }
43 39
44 security_state::SecurityStateModel::SecurityLevel 40 security_state::SecurityStateModel::SecurityLevel
(...skipping 12 matching lines...) Expand all
57 53
58 base::string16 TestToolbarModel::GetEVCertName() const { 54 base::string16 TestToolbarModel::GetEVCertName() const {
59 return (security_level_ == security_state::SecurityStateModel::EV_SECURE) 55 return (security_level_ == security_state::SecurityStateModel::EV_SECURE)
60 ? ev_cert_name_ 56 ? ev_cert_name_
61 : base::string16(); 57 : base::string16();
62 } 58 }
63 59
64 bool TestToolbarModel::ShouldDisplayURL() const { 60 bool TestToolbarModel::ShouldDisplayURL() const {
65 return should_display_url_; 61 return should_display_url_;
66 } 62 }
OLDNEW
« no previous file with comments | « components/toolbar/test_toolbar_model.h ('k') | components/toolbar/toolbar_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698