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

Unified Diff: chrome/browser/sync/test/integration/extensions_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/extensions_helper.cc
diff --git a/chrome/browser/sync/test/integration/extensions_helper.cc b/chrome/browser/sync/test/integration/extensions_helper.cc
index c244045fde24a62f1d53704c3b7e4f91819dc98f..1727fbb0ed2798211d642e4f8800efc3880cfc8c 100644
--- a/chrome/browser/sync/test/integration/extensions_helper.cc
+++ b/chrome/browser/sync/test/integration/extensions_helper.cc
@@ -81,6 +81,16 @@ std::vector<int> GetInstalledExtensions(Profile* profile) {
return indices;
}
+void EnableExtension(Profile* profile, int index) {
+ return SyncExtensionHelper::GetInstance()->EnableExtension(
+ profile, CreateFakeExtensionName(index));
+}
+
+void DisableExtension(Profile* profile, int index) {
+ return SyncExtensionHelper::GetInstance()->DisableExtension(
+ profile, CreateFakeExtensionName(index));
+}
+
bool IsExtensionEnabled(Profile* profile, int index) {
return SyncExtensionHelper::GetInstance()->IsExtensionEnabled(
profile, CreateFakeExtensionName(index));

Powered by Google App Engine
This is Rietveld 408576698