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

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

Issue 11415090: Remove assumption about initial ordinals in app sync tests (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/test/integration/two_client_apps_sync_test.cc
diff --git a/chrome/browser/sync/test/integration/two_client_apps_sync_test.cc b/chrome/browser/sync/test/integration/two_client_apps_sync_test.cc
index 782a63535ecf6187435cd45f78c0d5ff77e68951..ea6efc3f4ebac40b1fb980446183051aaf0a2854 100644
--- a/chrome/browser/sync/test/integration/two_client_apps_sync_test.cc
+++ b/chrome/browser/sync/test/integration/two_client_apps_sync_test.cc
@@ -369,7 +369,10 @@ IN_PROC_BROWSER_TEST_F(TwoClientAppsSyncTest, UpdateAppLaunchOrdinal) {
ASSERT_TRUE(AllProfilesHaveSameAppsAsVerifier());
syncer::StringOrdinal initial_position =
- syncer::StringOrdinal::CreateInitialOrdinal();
+ GetProfile(0)->GetExtensionService()->extension_prefs()
akalin 2012/11/22 09:34:33 i think a more robust solution would be to get the
+ ->extension_sorting()->CreateFirstAppLaunchOrdinal(
+ syncer::StringOrdinal::CreateInitialOrdinal());
+
InstallApp(GetProfile(0), 0);
InstallApp(GetProfile(1), 0);
InstallApp(verifier(), 0);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698