Chromium Code Reviews| Index: chrome/test/live_sync/live_sync_extension_helper.h |
| diff --git a/chrome/test/live_sync/live_sync_extension_helper.h b/chrome/test/live_sync/live_sync_extension_helper.h |
| index 188d9b304492385891abfb4cca6ef51b53235c49..01b44e2995f1913f508daa0f0b95a0e59136f63d 100644 |
| --- a/chrome/test/live_sync/live_sync_extension_helper.h |
| +++ b/chrome/test/live_sync/live_sync_extension_helper.h |
| @@ -21,8 +21,10 @@ class Profile; |
| class LiveSyncExtensionHelper { |
| public: |
| enum ExtensionState { DISABLED, PENDING, ENABLED }; |
|
akalin
2011/06/09 03:21:59
It's probably better to have something like this:
braffert
2011/06/09 18:20:42
I agree - done.
|
| + enum IncognitoExtensionState { INCOGNITO_ENABLED, INCOGNITO_DISABLED }; |
| - typedef std::map<std::string, ExtensionState> ExtensionStateMap; |
| + typedef std::map<std::string, std::pair<ExtensionState, |
| + IncognitoExtensionState> > ExtensionStateMap; |
| LiveSyncExtensionHelper(); |
| ~LiveSyncExtensionHelper(); |
| @@ -41,6 +43,18 @@ class LiveSyncExtensionHelper { |
| // Uninstalls the extension with the given name from |profile|. |
| void UninstallExtension(Profile* profile, const std::string& name); |
| + // Enables the extension with the given name on |profile|. |
| + void EnableExtension(Profile* profile, const std::string& name); |
| + |
| + // Disables the extension with the given name on |profile|. |
| + void DisableExtension(Profile* profile, const std::string& name); |
| + |
| + // Enables the extension with the given name to run in incognito mode |
| + void IncognitoEnableExtension(Profile* profile, const std::string& name); |
| + |
| + // Disables the extension with the given name from running in incognito mode |
| + void IncognitoDisableExtension(Profile* profile, const std::string& name); |
| + |
| // Returns true iff the extension with the given id is pending |
| // install in |profile|. |
| bool IsExtensionPendingInstallForSync( |