| 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) {
|
|
|