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

Unified Diff: chrome/common/web_apps.cc

Issue 10704092: Add offline_mode support in crxless apps (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/web_apps.h ('k') | chrome/common/web_apps_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/web_apps.cc
diff --git a/chrome/common/web_apps.cc b/chrome/common/web_apps.cc
index 8a2cdcca7802eb49bf5f68c5e072aed95ed985b2..a2d1d7ef97f52dc7463110d722a4bb2422a4b406 100644
--- a/chrome/common/web_apps.cc
+++ b/chrome/common/web_apps.cc
@@ -103,6 +103,7 @@ const char WebApplicationInfo::kInvalidIconURL[] =
WebApplicationInfo::WebApplicationInfo() {
is_bookmark_app = false;
+ is_offline_enabled = false;
}
WebApplicationInfo::~WebApplicationInfo() {
@@ -316,6 +317,9 @@ bool ParseWebAppFromDefinitionFile(Value* definition_value,
}
}
+ // Parse if offline mode is enabled.
Mihai Parparita -not on Chrome 2012/07/11 06:03:01 This comment is redundant, and should be removed.
+ definition->GetBoolean("offline_enabled", &web_app->is_offline_enabled);
+
CHECK(definition->GetString("name", &web_app->title));
definition->GetString("description", &web_app->description);
definition->GetString("launch_container", &web_app->launch_container);
« no previous file with comments | « chrome/common/web_apps.h ('k') | chrome/common/web_apps_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698