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

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

Issue 9706017: Remove Ordinals Setters and Getters from ExtensionService (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 9 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 | « chrome/browser/sync/test/integration/sync_app_helper.cc ('k') | 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 b87256c2c2b85cf54c6aa34aeca2ad5060245662..d4313b9cdb34a397656a95a689b390e7f3362263 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
@@ -5,6 +5,7 @@
#include "base/basictypes.h"
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/browser/extensions/extension_service.h"
+#include "chrome/browser/extensions/extension_sorting.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/profile_sync_service_harness.h"
#include "chrome/browser/sync/test/integration/apps_helper.h"
@@ -379,24 +380,28 @@ IN_PROC_BROWSER_TEST_F(TwoClientAppsSyncTest, UpdateCWSOrdinals) {
ASSERT_TRUE(AllProfilesHaveSameAppsAsVerifier());
// Change the app launch ordinal.
- StringOrdinal cws_app_launch_ordinal =
- GetProfile(0)->GetExtensionService()->GetAppLaunchOrdinal(
+ StringOrdinal cws_app_launch_ordinal = GetProfile(0)->GetExtensionService()->
+ extension_prefs()->extension_sorting()->GetAppLaunchOrdinal(
extension_misc::kWebStoreAppId);
- GetProfile(0)->GetExtensionService()->SetAppLaunchOrdinal(
- extension_misc::kWebStoreAppId, cws_app_launch_ordinal.CreateAfter());
- verifier()->GetExtensionService()->SetAppLaunchOrdinal(
- extension_misc::kWebStoreAppId, cws_app_launch_ordinal.CreateAfter());
+ GetProfile(0)->GetExtensionService()->extension_prefs()->extension_sorting()->
+ SetAppLaunchOrdinal(
+ extension_misc::kWebStoreAppId, cws_app_launch_ordinal.CreateAfter());
+ verifier()->GetExtensionService()->extension_prefs()->extension_sorting()->
+ SetAppLaunchOrdinal(
+ extension_misc::kWebStoreAppId, cws_app_launch_ordinal.CreateAfter());
ASSERT_TRUE(AwaitQuiescence());
ASSERT_TRUE(AllProfilesHaveSameAppsAsVerifier());
// Change the page ordinal.
- StringOrdinal cws_page_ordinal =
- GetProfile(1)->GetExtensionService()->GetPageOrdinal(
+ StringOrdinal cws_page_ordinal = GetProfile(1)->GetExtensionService()->
+ extension_prefs()->extension_sorting()->GetPageOrdinal(
extension_misc::kWebStoreAppId);
- GetProfile(1)->GetExtensionService()->SetPageOrdinal(
- extension_misc::kWebStoreAppId, cws_page_ordinal.CreateAfter());
- verifier()->GetExtensionService()->SetPageOrdinal(
- extension_misc::kWebStoreAppId, cws_page_ordinal.CreateAfter());
+ GetProfile(1)->GetExtensionService()->extension_prefs()->
+ extension_sorting()->SetPageOrdinal(extension_misc::kWebStoreAppId,
+ cws_page_ordinal.CreateAfter());
+ verifier()->GetExtensionService()->extension_prefs()->
+ extension_sorting()->SetPageOrdinal(extension_misc::kWebStoreAppId,
+ cws_page_ordinal.CreateAfter());
ASSERT_TRUE(AwaitQuiescence());
ASSERT_TRUE(AllProfilesHaveSameAppsAsVerifier());
}
« no previous file with comments | « chrome/browser/sync/test/integration/sync_app_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698