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

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

Issue 2965043003: ToolbarModel: Supply offline page status. (Closed)
Patch Set: And, ios-simulator. Created 3 years, 5 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 #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
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 }
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