| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SYNC_TEST_LIVE_SYNC_APPS_HELPER_H_ | |
| 6 #define CHROME_BROWSER_SYNC_TEST_LIVE_SYNC_APPS_HELPER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/compiler_specific.h" | |
| 11 #include "chrome/browser/sync/test/live_sync/live_sync_test.h" | |
| 12 | |
| 13 class Profile; | |
| 14 | |
| 15 namespace apps_helper { | |
| 16 | |
| 17 // Returns true iff the profile with index |index| has the same apps as the | |
| 18 // verifier. | |
| 19 bool HasSameAppsAsVerifier(int index) WARN_UNUSED_RESULT; | |
| 20 | |
| 21 // Returns true iff all existing profiles have the same apps as the verifier. | |
| 22 bool AllProfilesHaveSameAppsAsVerifier() WARN_UNUSED_RESULT; | |
| 23 | |
| 24 // Installs the app for the given index to |profile|. | |
| 25 void InstallApp(Profile* profile, int index); | |
| 26 | |
| 27 // Uninstalls the app for the given index from |profile|. Assumes that it was | |
| 28 // previously installed. | |
| 29 void UninstallApp(Profile* profile, int index); | |
| 30 | |
| 31 // Installs all pending synced apps for |profile|. | |
| 32 void InstallAppsPendingForSync(Profile* profile); | |
| 33 | |
| 34 // Enables the app for the given index on |profile|. | |
| 35 void EnableApp(Profile* profile, int index); | |
| 36 | |
| 37 // Disables the appfor the given index on |profile|. | |
| 38 void DisableApp(Profile* profile, int index); | |
| 39 | |
| 40 // Enables the app for the given index in incognito mode on |profile|. | |
| 41 void IncognitoEnableApp(Profile* profile, int index); | |
| 42 | |
| 43 // Disables the app for the given index in incognito mode on |profile|. | |
| 44 void IncognitoDisableApp(Profile* profile, int index); | |
| 45 | |
| 46 } // namespace apps_helper | |
| 47 | |
| 48 #endif // CHROME_BROWSER_SYNC_TEST_LIVE_SYNC_APPS_HELPER_H_ | |
| OLD | NEW |