| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_LIVE_SYNC_APPS_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_APPS_HELPER_H_ |
| 6 #define CHROME_BROWSER_SYNC_TEST_LIVE_SYNC_APPS_HELPER_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_APPS_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "chrome/browser/sync/test/live_sync/live_sync_test.h" | 11 #include "chrome/browser/sync/test/integration/sync_test.h" |
| 12 | 12 |
| 13 class Profile; | 13 class Profile; |
| 14 | 14 |
| 15 namespace apps_helper { | 15 namespace apps_helper { |
| 16 | 16 |
| 17 // Returns true iff the profile with index |index| has the same apps as the | 17 // Returns true iff the profile with index |index| has the same apps as the |
| 18 // verifier. | 18 // verifier. |
| 19 bool HasSameAppsAsVerifier(int index) WARN_UNUSED_RESULT; | 19 bool HasSameAppsAsVerifier(int index) WARN_UNUSED_RESULT; |
| 20 | 20 |
| 21 // Returns true iff all existing profiles have the same apps as the verifier. | 21 // Returns true iff all existing profiles have the same apps as the verifier. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 38 void DisableApp(Profile* profile, int index); | 38 void DisableApp(Profile* profile, int index); |
| 39 | 39 |
| 40 // Enables the app for the given index in incognito mode on |profile|. | 40 // Enables the app for the given index in incognito mode on |profile|. |
| 41 void IncognitoEnableApp(Profile* profile, int index); | 41 void IncognitoEnableApp(Profile* profile, int index); |
| 42 | 42 |
| 43 // Disables the app for the given index in incognito mode on |profile|. | 43 // Disables the app for the given index in incognito mode on |profile|. |
| 44 void IncognitoDisableApp(Profile* profile, int index); | 44 void IncognitoDisableApp(Profile* profile, int index); |
| 45 | 45 |
| 46 } // namespace apps_helper | 46 } // namespace apps_helper |
| 47 | 47 |
| 48 #endif // CHROME_BROWSER_SYNC_TEST_LIVE_SYNC_APPS_HELPER_H_ | 48 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_APPS_HELPER_H_ |
| OLD | NEW |