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

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

Issue 11308072: Include v2 packaged apps in sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment explaining index 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/apps_helper.cc
diff --git a/chrome/browser/sync/test/integration/apps_helper.cc b/chrome/browser/sync/test/integration/apps_helper.cc
index faf0adde2e75095164eb95377c928f31c6554eb0..fe9a37977afb1f9f34099924ee0d1042122c5311 100644
--- a/chrome/browser/sync/test/integration/apps_helper.cc
+++ b/chrome/browser/sync/test/integration/apps_helper.cc
@@ -47,6 +47,13 @@ std::string InstallApp(Profile* profile, int index) {
extensions::Extension::TYPE_HOSTED_APP);
}
+std::string InstallPlatformApp(Profile* profile, int index) {
+ return SyncExtensionHelper::GetInstance()->InstallExtension(
+ profile,
+ CreateFakeAppName(index),
+ extensions::Extension::TYPE_PLATFORM_APP);
+}
+
std::string InstallAppForAllProfiles(int index) {
for (int i = 0; i < test()->num_clients(); ++i)
InstallApp(test()->GetProfile(i), index);
@@ -79,8 +86,7 @@ void IncognitoDisableApp(Profile* profile, int index) {
}
void InstallAppsPendingForSync(Profile* profile) {
- SyncExtensionHelper::GetInstance()->InstallExtensionsPendingForSync(
- profile, extensions::Extension::TYPE_HOSTED_APP);
+ SyncExtensionHelper::GetInstance()->InstallExtensionsPendingForSync(profile);
}
syncer::StringOrdinal GetPageOrdinalForApp(Profile* profile,
« no previous file with comments | « chrome/browser/sync/test/integration/apps_helper.h ('k') | chrome/browser/sync/test/integration/extensions_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698