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

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

Issue 1408643002: [Sync] Componentize synced_tab_delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test broken by rebase Created 5 years, 2 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/sessions_helper.cc
diff --git a/chrome/browser/sync/test/integration/sessions_helper.cc b/chrome/browser/sync/test/integration/sessions_helper.cc
index d69baa20641d2642caa442f1adb7c9daf8be6317..eb72f7e0ebc7a04ca9a00c6c2f1b98a04a6bacd6 100644
--- a/chrome/browser/sync/test/integration/sessions_helper.cc
+++ b/chrome/browser/sync/test/integration/sessions_helper.cc
@@ -27,6 +27,7 @@
#include "chrome/browser/ui/singleton_tabs.h"
#include "chrome/common/chrome_switches.h"
#include "components/sync_driver/open_tabs_ui_delegate.h"
+#include "components/sync_driver/sync_client.h"
#include "content/public/test/test_utils.h"
#include "url/gurl.h"
@@ -183,6 +184,10 @@ bool WaitForTabsToLoad(int index, const std::vector<GURL>& urls) {
TabEventHandler handler;
browser_sync::NotificationServiceSessionsRouter router(
test()->GetProfile(index),
+ ProfileSyncServiceFactory::GetInstance()
+ ->GetForProfile(test()->GetProfile(index))
+ ->GetSyncClient()
+ ->GetSyncSessionsClient(),
syncer::SyncableService::StartSyncFlare());
router.StartRoutingTo(&handler);
content::RunMessageLoop();

Powered by Google App Engine
This is Rietveld 408576698