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

Unified Diff: chrome/browser/ui/webui/ntp/android/promo_handler.cc

Issue 74653002: sync: Add --enable-sync-sessions-v2 and necessary plumbing to use SessionsSyncManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review 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/ui/webui/ntp/android/promo_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/android/promo_handler.cc b/chrome/browser/ui/webui/ntp/android/promo_handler.cc
index 4c8ba25cccf8c5fbde4e0df9c0260ba5b0b618b4..d5a0bfd04afb9c48fafce0a131761541cc5c3d6b 100644
--- a/chrome/browser/ui/webui/ntp/android/promo_handler.cc
+++ b/chrome/browser/ui/webui/ntp/android/promo_handler.cc
@@ -16,8 +16,8 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/signin/signin_manager.h"
-#include "chrome/browser/sync/glue/session_model_associator.h"
#include "chrome/browser/sync/glue/synced_session.h"
+#include "chrome/browser/sync/open_tabs_ui_delegate.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/web_resource/notification_promo.h"
@@ -312,15 +312,15 @@ void PromoHandler::CheckDesktopSessions() {
return;
// Check if the sync has any open sessions.
- browser_sync::SessionModelAssociator* associator =
- service->GetSessionModelAssociator();
- if (!associator)
+ browser_sync::OpenTabsUIDelegate* open_tabs =
+ service->GetOpenTabsUIDelegate();
+ if (!open_tabs)
return;
// Let's see if there are no desktop sessions.
std::vector<const browser_sync::SyncedSession*> sessions;
ListValue session_list;
- if (!associator->GetAllForeignSessions(&sessions))
+ if (!open_tabs->GetAllForeignSessions(&sessions))
return;
for (size_t i = 0; i < sessions.size(); ++i) {

Powered by Google App Engine
This is Rietveld 408576698