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

Unified Diff: chrome/browser/android/vr_shell/toolbar_state.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/vr_shell/toolbar_state.cc
diff --git a/chrome/browser/android/vr_shell/toolbar_state.cc b/chrome/browser/android/vr_shell/toolbar_state.cc
index d752f7f243d72d194c808e33a95485f0079818a5..2d684527ed919c42cc3b2df6eebf6dea82de3784 100644
--- a/chrome/browser/android/vr_shell/toolbar_state.cc
+++ b/chrome/browser/android/vr_shell/toolbar_state.cc
@@ -10,24 +10,30 @@ ToolbarState::ToolbarState()
: gurl(GURL()),
security_level(security_state::SecurityLevel::NONE),
vector_icon(nullptr),
- should_display_url(true) {}
+ should_display_url(true),
+ offline_page(false) {}
ToolbarState::ToolbarState(const GURL& url,
security_state::SecurityLevel level,
const gfx::VectorIcon* icon,
base::string16 verbose_text,
- bool display_url)
+ bool display_url,
+ bool offline)
: gurl(url),
security_level(level),
vector_icon(icon),
secure_verbose_text(verbose_text),
- should_display_url(display_url) {}
+ should_display_url(display_url),
+ offline_page(offline) {}
+
+ToolbarState::ToolbarState(const ToolbarState& other) = default;
bool ToolbarState::operator==(const ToolbarState& other) const {
return (gurl == other.gurl && security_level == other.security_level &&
vector_icon == other.vector_icon &&
should_display_url == other.should_display_url &&
- secure_verbose_text == other.secure_verbose_text);
+ secure_verbose_text == other.secure_verbose_text &&
+ offline_page == other.offline_page);
}
bool ToolbarState::operator!=(const ToolbarState& other) const {
« no previous file with comments | « chrome/browser/android/vr_shell/toolbar_state.h ('k') | chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698