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

Unified Diff: components/toolbar/test_toolbar_model.h

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 side-by-side diff with in-line comments
Download patch
Index: components/toolbar/test_toolbar_model.h
diff --git a/components/toolbar/test_toolbar_model.h b/components/toolbar/test_toolbar_model.h
index 01daf608d4628854d1a1a5cb6cacde9a8031e37d..0484b07424864f88dd45def34ac8656f3debf7c3 100644
--- a/components/toolbar/test_toolbar_model.h
+++ b/components/toolbar/test_toolbar_model.h
@@ -31,6 +31,7 @@ class TestToolbarModel : public ToolbarModel {
base::string16 GetSecureVerboseText() const override;
base::string16 GetEVCertName() const override;
bool ShouldDisplayURL() const override;
+ bool IsOfflinePage() const override;
void set_text(const base::string16& text) { text_ = text; }
void set_url(const GURL& url) { url_ = url; }
@@ -44,14 +45,16 @@ class TestToolbarModel : public ToolbarModel {
void set_should_display_url(bool should_display_url) {
should_display_url_ = should_display_url;
}
+ void set_offline_page(bool offline_page) { offline_page_ = offline_page; }
private:
base::string16 text_;
GURL url_;
- security_state::SecurityLevel security_level_;
+ security_state::SecurityLevel security_level_ = security_state::NONE;
const gfx::VectorIcon* icon_ = nullptr;
base::string16 ev_cert_name_;
- bool should_display_url_;
+ bool should_display_url_ = false;
+ bool offline_page_ = false;
DISALLOW_COPY_AND_ASSIGN(TestToolbarModel);
};
« no previous file with comments | « chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.cc ('k') | components/toolbar/test_toolbar_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698