| 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 b24a7dd9f7c00b9608b3f71b18020c47dcff059e..6478e3a6faa59d9e05bcbe8454370e0f98edc747 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
|
| @@ -334,14 +334,14 @@ IN_PROC_BROWSER_TEST_F(TwoClientAppsSyncTest, UpdateCWSOrdinals) {
|
|
|
| // Change the app launch ordinal.
|
| syncer::StringOrdinal cws_app_launch_ordinal =
|
| - extensions::ExtensionPrefs::Get(GetProfile(0))
|
| + extensions::ExtensionSystem::Get(GetProfile(0))
|
| ->app_sorting()
|
| ->GetAppLaunchOrdinal(extensions::kWebStoreAppId);
|
| - extensions::ExtensionPrefs::Get(GetProfile(0))
|
| + extensions::ExtensionSystem::Get(GetProfile(0))
|
| ->app_sorting()
|
| ->SetAppLaunchOrdinal(extensions::kWebStoreAppId,
|
| cws_app_launch_ordinal.CreateAfter());
|
| - extensions::ExtensionPrefs::Get(verifier())
|
| + extensions::ExtensionSystem::Get(verifier())
|
| ->app_sorting()
|
| ->SetAppLaunchOrdinal(extensions::kWebStoreAppId,
|
| cws_app_launch_ordinal.CreateAfter());
|
| @@ -349,13 +349,17 @@ IN_PROC_BROWSER_TEST_F(TwoClientAppsSyncTest, UpdateCWSOrdinals) {
|
|
|
| // Change the page ordinal.
|
| syncer::StringOrdinal cws_page_ordinal =
|
| - extensions::ExtensionPrefs::Get(GetProfile(1))
|
| + extensions::ExtensionSystem::Get(GetProfile(1))
|
| ->app_sorting()
|
| ->GetPageOrdinal(extensions::kWebStoreAppId);
|
| - extensions::ExtensionPrefs::Get(GetProfile(1))->app_sorting()->SetPageOrdinal(
|
| - extensions::kWebStoreAppId, cws_page_ordinal.CreateAfter());
|
| - extensions::ExtensionPrefs::Get(verifier())->app_sorting()->SetPageOrdinal(
|
| - extensions::kWebStoreAppId, cws_page_ordinal.CreateAfter());
|
| + extensions::ExtensionSystem::Get(GetProfile(1))
|
| + ->app_sorting()
|
| + ->SetPageOrdinal(extensions::kWebStoreAppId,
|
| + cws_page_ordinal.CreateAfter());
|
| + extensions::ExtensionSystem::Get(verifier())
|
| + ->app_sorting()
|
| + ->SetPageOrdinal(extensions::kWebStoreAppId,
|
| + cws_page_ordinal.CreateAfter());
|
| ASSERT_TRUE(AwaitAllProfilesHaveSameApps());
|
| }
|
|
|
|
|