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

Unified Diff: chrome/browser/sync/test/integration/sync_extension_helper.cc

Issue 11308072: Include v2 packaged apps in sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/sync/test/integration/sync_extension_helper.cc
diff --git a/chrome/browser/sync/test/integration/sync_extension_helper.cc b/chrome/browser/sync/test/integration/sync_extension_helper.cc
index a4ce6076fdf19927a0229c3ef539eb8721e2b725..4a87b673b67a9cce30716e7ec9447296390c4137 100644
--- a/chrome/browser/sync/test/integration/sync_extension_helper.cc
+++ b/chrome/browser/sync/test/integration/sync_extension_helper.cc
@@ -282,6 +282,16 @@ scoped_refptr<Extension> CreateExtension(
source.SetString(extension_manifest_keys::kLaunchWebURL,
"http://www.example.com");
break;
+ case Extension::TYPE_PLATFORM_APP: {
+ source.Set(extension_manifest_keys::kApp, new DictionaryValue());
+ source.Set(extension_manifest_keys::kPlatformAppBackground,
+ new DictionaryValue());
+ ListValue* scripts = new ListValue();
+ scripts->AppendString("main.js");
+ source.Set(extension_manifest_keys::kPlatformAppBackgroundScripts,
+ scripts);
+ break;
+ }
default:
ADD_FAILURE();
return NULL;

Powered by Google App Engine
This is Rietveld 408576698