| Index: chrome/browser/ui/webui/sessions_ui.cc
|
| diff --git a/chrome/browser/ui/webui/sessions_ui.cc b/chrome/browser/ui/webui/sessions_ui.cc
|
| index e9e0e0c180f1946121399f4682b6ab6299ff8396..04d845f90aeebac5f4318eb40d40cb656ca19fb8 100644
|
| --- a/chrome/browser/ui/webui/sessions_ui.cc
|
| +++ b/chrome/browser/ui/webui/sessions_ui.cc
|
| @@ -119,7 +119,8 @@ void SessionsDOMHandler::HandleRequestSessions(const ListValue* args) {
|
| browser_sync::SessionModelAssociator* SessionsDOMHandler::GetModelAssociator() {
|
| // We only want to get the model associator if there is one, and it is done
|
| // syncing sessions.
|
| - Profile* profile = web_ui_->GetProfile();
|
| + Profile* profile =
|
| + Profile::FromBrowserContext(web_ui_->tab_contents()->browser_context());
|
| if (!profile->HasProfileSyncService())
|
| return NULL;
|
| ProfileSyncService* service = profile->GetProfileSyncService();
|
|
|