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

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

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

Powered by Google App Engine
This is Rietveld 408576698