Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6701)

Unified Diff: chrome/test/live_sync/live_sync_extension_helper.h

Issue 7104072: Adding new extension sync integration tests. Also modified the way that profile (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed lint error - misplaced comma Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698