diff options
Diffstat (limited to 'chrome/browser/ui/webui/sessions_ui.cc')
-rw-r--r-- | chrome/browser/ui/webui/sessions_ui.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/ui/webui/sessions_ui.cc b/chrome/browser/ui/webui/sessions_ui.cc index bfaddf7..9e5665f 100644 --- a/chrome/browser/ui/webui/sessions_ui.cc +++ b/chrome/browser/ui/webui/sessions_ui.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -13,6 +13,7 @@ #include "chrome/browser/sync/glue/session_model_associator.h" #include "chrome/browser/sync/glue/synced_session.h" #include "chrome/browser/sync/profile_sync_service.h" +#include "chrome/browser/sync/profile_sync_service_factory.h" #include "chrome/browser/ui/webui/chrome_url_data_manager.h" #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" @@ -127,7 +128,8 @@ browser_sync::SessionModelAssociator* SessionsDOMHandler::GetModelAssociator() { Profile* profile = Profile::FromWebUI(web_ui()); if (!profile->HasProfileSyncService()) return NULL; - ProfileSyncService* service = profile->GetProfileSyncService(); + ProfileSyncService* service(ProfileSyncServiceFactory:: + GetInstance()->GetForProfile(profile)); if (!service->ShouldPushChanges()) return NULL; return service->GetSessionModelAssociator(); |