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

Unified Diff: chrome/browser/sync/test/integration/profile_sync_service_harness.h

Issue 2767893002: Remove ScopedVector from chrome/browser/. (Closed)
Patch Set: Created 3 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/profile_sync_service_harness.h
diff --git a/chrome/browser/sync/test/integration/profile_sync_service_harness.h b/chrome/browser/sync/test/integration/profile_sync_service_harness.h
index 42ca64008d2115528b34777171673509643ed9e6..777f99cbdde32828832e2e08794b959c6fae9f88 100644
--- a/chrome/browser/sync/test/integration/profile_sync_service_harness.h
+++ b/chrome/browser/sync/test/integration/profile_sync_service_harness.h
@@ -39,7 +39,7 @@ class ProfileSyncServiceHarness {
UI_SIGNIN
};
- static ProfileSyncServiceHarness* Create(
+ static std::unique_ptr<ProfileSyncServiceHarness> Create(
Profile* profile,
const std::string& username,
const std::string& password,
@@ -85,14 +85,13 @@ class ProfileSyncServiceHarness {
// Note: Use this method when exactly one client makes local change(s),
// and more than one client is waiting to receive those changes.
bool AwaitGroupSyncCycleCompletion(
- const std::vector<ProfileSyncServiceHarness*>& partners);
+ std::vector<ProfileSyncServiceHarness*> partners);
// Blocks the caller until every client in |clients| completes its ongoing
// sync cycle and all the clients' progress markers match. Note: Use this
// method when more than one client makes local change(s), and more than one
// client is waiting to receive those changes.
- static bool AwaitQuiescence(
- const std::vector<ProfileSyncServiceHarness*>& clients);
+ static bool AwaitQuiescence(std::vector<ProfileSyncServiceHarness*> clients);
// Blocks the caller until the sync engine is initialized or some end state
// (e.g., auth error) is reached. Returns true if and only if the engine

Powered by Google App Engine
This is Rietveld 408576698