Chromium Code Reviews| Index: chrome/browser/ui/webui/ntp/foreign_session_handler.cc |
| diff --git a/chrome/browser/ui/webui/ntp/foreign_session_handler.cc b/chrome/browser/ui/webui/ntp/foreign_session_handler.cc |
| index daa8a8d2a134941ba404eae124c8000c4961258e..7fc8a7c3deab198109539f4ed4ab56925a5a8f20 100644 |
| --- a/chrome/browser/ui/webui/ntp/foreign_session_handler.cc |
| +++ b/chrome/browser/ui/webui/ntp/foreign_session_handler.cc |
| @@ -16,6 +16,7 @@ |
| #include "chrome/browser/profiles/profile.h" |
| #include "chrome/browser/sessions/session_restore.h" |
| #include "chrome/browser/sync/profile_sync_service.h" |
| +#include "chrome/browser/sync/profile_sync_service_factory.h" |
| #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
| #include "chrome/common/chrome_notification_types.h" |
| #include "chrome/common/url_constants.h" |
| @@ -74,8 +75,8 @@ void ForeignSessionHandler::Observe( |
| } |
| SessionModelAssociator* ForeignSessionHandler::GetModelAssociator() { |
| - ProfileSyncService* service = |
| - Profile::FromWebUI(web_ui())->GetProfileSyncService(); |
| + ProfileSyncService* service(ProfileSyncServiceFactory:: |
|
Andrew T Wilson (Slow)
2012/01/26 23:09:09
nit: also fine, although this combines my two pet
|
| + GetInstance()->GetForProfile(Profile::FromWebUI(web_ui()))); |
| if (service == NULL) |
| return NULL; |