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

Unified Diff: chrome/browser/sync/test/integration/sync_extension_helper.cc

Issue 65983002: Revert 231221 - "Remove enabled/disabled state from extension and app sync." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/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(

Powered by Google App Engine
This is Rietveld 408576698