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

Unified Diff: chrome/browser/extensions/convert_web_app.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 | « no previous file | chrome/common/extensions/extension_messages.h » ('j') | chrome/common/web_apps.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/convert_web_app.cc
diff --git a/chrome/browser/extensions/convert_web_app.cc b/chrome/browser/extensions/convert_web_app.cc
index 0f8bc53ef1ca32c1cec96925f3b720a5db6a6092..a114cc397929a01768ee118e7125efd377f504cb 100644
--- a/chrome/browser/extensions/convert_web_app.cc
+++ b/chrome/browser/extensions/convert_web_app.cc
@@ -103,6 +103,10 @@ scoped_refptr<Extension> ConvertWebAppToExtension(
root->SetString(keys::kPublicKey, GenerateKey(web_app.manifest_url));
else
root->SetString(keys::kPublicKey, GenerateKey(web_app.app_url));
+
+ if (web_app.is_offline_enabled)
+ root->SetBoolean(keys::kOfflineEnabled, true);
+
root->SetString(keys::kName, UTF16ToUTF8(web_app.title));
root->SetString(keys::kVersion, ConvertTimeToExtensionVersion(create_time));
root->SetString(keys::kDescription, UTF16ToUTF8(web_app.description));
« no previous file with comments | « no previous file | chrome/common/extensions/extension_messages.h » ('j') | chrome/common/web_apps.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698