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

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

Issue 1850253002: Revert of [Sync] Eliminate verifier profile from sync_integration_tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/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 1dad8f42181b51ea6efebe6800e145ff705d3a29..7f9a2fbe99c6c43940336ef35077dd3b10ec597a 100644
--- a/chrome/browser/sync/test/integration/extensions_helper.cc
+++ b/chrome/browser/sync/test/integration/extensions_helper.cc
@@ -70,11 +70,9 @@
}
std::string InstallExtensionForAllProfiles(int index) {
- std::string extension_id;
- for (auto* profile : test()->GetAllProfiles()) {
- extension_id = InstallExtension(profile, index);
- }
- return extension_id;
+ for (int i = 0; i < test()->num_clients(); ++i)
+ InstallExtension(test()->GetProfile(i), index);
+ return InstallExtension(test()->verifier(), index);
}
void UninstallExtension(Profile* profile, int index) {

Powered by Google App Engine
This is Rietveld 408576698