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

Unified Diff: content/public/common/manifest.cc

Issue 563083004: Add support for 'display' in Manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_to_homescreen_manifest
Patch Set: review comments Created 6 years, 3 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
« no previous file with comments | « content/public/common/manifest.h ('k') | content/renderer/manifest/manifest_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/manifest.cc
diff --git a/content/public/common/manifest.cc b/content/public/common/manifest.cc
index f1dd57ece376c0f7c5a3fa1edcfa7944ba9731ac..d9fa2b26f25e4ea9780e6ce5e2fe2786a6d3f402 100644
--- a/content/public/common/manifest.cc
+++ b/content/public/common/manifest.cc
@@ -8,14 +8,18 @@ namespace content {
const size_t Manifest::kMaxIPCStringLength = 4 * 1024;
-Manifest::Manifest() {
+Manifest::Manifest()
+ : display(DISPLAY_MODE_UNSPECIFIED) {
}
Manifest::~Manifest() {
}
bool Manifest::IsEmpty() const {
- return name.is_null() && short_name.is_null();
+ return name.is_null() &&
+ short_name.is_null() &&
+ start_url.is_empty() &&
+ display == DISPLAY_MODE_UNSPECIFIED;
}
} // namespace content
« no previous file with comments | « content/public/common/manifest.h ('k') | content/renderer/manifest/manifest_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698