| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_APPS_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_APPS_HELPER_H_ |
| 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_APPS_HELPER_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_APPS_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/sync/test/integration/sync_test.h" | 10 #include "chrome/browser/sync/test/integration/sync_test.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // verifier), and returns the extension ID of the new app. | 35 // verifier), and returns the extension ID of the new app. |
| 36 std::string InstallAppForAllProfiles(int index); | 36 std::string InstallAppForAllProfiles(int index); |
| 37 | 37 |
| 38 // Uninstalls the app for the given index from |profile|. Assumes that it was | 38 // Uninstalls the app for the given index from |profile|. Assumes that it was |
| 39 // previously installed. | 39 // previously installed. |
| 40 void UninstallApp(Profile* profile, int index); | 40 void UninstallApp(Profile* profile, int index); |
| 41 | 41 |
| 42 // Installs all pending synced apps for |profile|. | 42 // Installs all pending synced apps for |profile|. |
| 43 void InstallAppsPendingForSync(Profile* profile); | 43 void InstallAppsPendingForSync(Profile* profile); |
| 44 | 44 |
| 45 // Enables the app for the given index on |profile|. |
| 46 void EnableApp(Profile* profile, int index); |
| 47 |
| 48 // Disables the app for the given index on |profile|. |
| 49 void DisableApp(Profile* profile, int index); |
| 50 |
| 45 // Enables the app for the given index in incognito mode on |profile|. | 51 // Enables the app for the given index in incognito mode on |profile|. |
| 46 void IncognitoEnableApp(Profile* profile, int index); | 52 void IncognitoEnableApp(Profile* profile, int index); |
| 47 | 53 |
| 48 // Disables the app for the given index in incognito mode on |profile|. | 54 // Disables the app for the given index in incognito mode on |profile|. |
| 49 void IncognitoDisableApp(Profile* profile, int index); | 55 void IncognitoDisableApp(Profile* profile, int index); |
| 50 | 56 |
| 51 // Gets the page ordinal value for the application at the given index on | 57 // Gets the page ordinal value for the application at the given index on |
| 52 // |profile|. | 58 // |profile|. |
| 53 syncer::StringOrdinal GetPageOrdinalForApp(Profile* profile, int app_index); | 59 syncer::StringOrdinal GetPageOrdinalForApp(Profile* profile, int app_index); |
| 54 | 60 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 74 // The main intention of this is to properly setup the values on the verifier | 80 // The main intention of this is to properly setup the values on the verifier |
| 75 // profile in situations where the other profiles have conflicting values. | 81 // profile in situations where the other profiles have conflicting values. |
| 76 void CopyNTPOrdinals(Profile* source, Profile* destination, int index); | 82 void CopyNTPOrdinals(Profile* source, Profile* destination, int index); |
| 77 | 83 |
| 78 // Fix any NTP icon collisions that are currently in |profile|. | 84 // Fix any NTP icon collisions that are currently in |profile|. |
| 79 void FixNTPOrdinalCollisions(Profile* profile); | 85 void FixNTPOrdinalCollisions(Profile* profile); |
| 80 | 86 |
| 81 } // namespace apps_helper | 87 } // namespace apps_helper |
| 82 | 88 |
| 83 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_APPS_HELPER_H_ | 89 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_APPS_HELPER_H_ |
| OLD | NEW |