Index: chrome/test/live_sync/live_apps_sync_test.cc |
diff --git a/chrome/test/live_sync/live_apps_sync_test.cc b/chrome/test/live_sync/live_apps_sync_test.cc |
index 885949a0f2725e14e2f20df9000fa8851155367c..8fb6da906daae01a7bc938df22df9183b1711f70 100644 |
--- a/chrome/test/live_sync/live_apps_sync_test.cc |
+++ b/chrome/test/live_sync/live_apps_sync_test.cc |
@@ -32,16 +32,9 @@ bool LiveAppsSyncTest::SetupClients() { |
bool LiveAppsSyncTest::HasSameAppsAsVerifier(int index) { |
// TODO(akalin): We may want to filter out non-apps for some tests. |
- LiveSyncExtensionHelper::ExtensionStateMap |
- verifier_extension_state_map( |
- extension_helper_.GetExtensionStates(verifier())); |
- LiveSyncExtensionHelper::ExtensionStateMap |
- extension_state_map( |
- extension_helper_.GetExtensionStates(GetProfile(index))); |
- return (extension_state_map == verifier_extension_state_map); |
+ return extension_helper_.ExtensionStatesMatch(GetProfile(index), verifier()); |
} |
- |
bool LiveAppsSyncTest::AllProfilesHaveSameAppsAsVerifier() { |
for (int i = 0; i < num_clients(); ++i) { |
if (!HasSameAppsAsVerifier(i)) { |
@@ -64,6 +57,26 @@ void LiveAppsSyncTest::UninstallApp(Profile* profile, int index) { |
CreateFakeAppName(index)); |
} |
+void LiveAppsSyncTest::EnableApp(Profile* profile, int index) { |
+ return extension_helper_.EnableExtension(profile, |
+ CreateFakeAppName(index)); |
+} |
+ |
+void LiveAppsSyncTest::DisableApp(Profile* profile, int index) { |
+ return extension_helper_.DisableExtension(profile, |
+ CreateFakeAppName(index)); |
+} |
+ |
+void LiveAppsSyncTest::IncognitoEnableApp(Profile* profile, int index) { |
+ return extension_helper_.IncognitoEnableExtension(profile, |
+ CreateFakeAppName(index)); |
+} |
+ |
+void LiveAppsSyncTest::IncognitoDisableApp(Profile* profile, int index) { |
+ return extension_helper_.IncognitoDisableExtension(profile, |
+ CreateFakeAppName(index)); |
+} |
+ |
void LiveAppsSyncTest::InstallAppsPendingForSync( |
Profile* profile) { |
extension_helper_.InstallExtensionsPendingForSync( |