Index: chrome/browser/sync/test/integration/sync_extension_helper.cc |
diff --git a/chrome/browser/sync/test/integration/sync_extension_helper.cc b/chrome/browser/sync/test/integration/sync_extension_helper.cc |
index 0bc2a35d0a075417432d3984b97049523f708340..75a69e60fb7a56b51928a7c7298dc56325c5440e 100644 |
--- a/chrome/browser/sync/test/integration/sync_extension_helper.cc |
+++ b/chrome/browser/sync/test/integration/sync_extension_helper.cc |
@@ -97,6 +97,18 @@ std::vector<std::string> SyncExtensionHelper::GetInstalledExtensionNames( |
return names; |
} |
+void SyncExtensionHelper::EnableExtension(Profile* profile, |
+ const std::string& name) { |
+ profile->GetExtensionService()->EnableExtension( |
+ extensions::id_util::GenerateId(name)); |
+} |
+ |
+void SyncExtensionHelper::DisableExtension(Profile* profile, |
+ const std::string& name) { |
+ profile->GetExtensionService()->DisableExtension( |
+ extensions::id_util::GenerateId(name), Extension::DISABLE_USER_ACTION); |
+} |
+ |
bool SyncExtensionHelper::IsExtensionEnabled( |
Profile* profile, const std::string& name) const { |
return profile->GetExtensionService()->IsExtensionEnabled( |