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..9bbabbd201f3e5c7cfec91f4f247a3d36c2590c7 100644 |
--- a/chrome/browser/ui/webui/sessions_ui.cc |
+++ b/chrome/browser/ui/webui/sessions_ui.cc |
@@ -119,7 +119,7 @@ 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::FromWebUI(web_ui_); |
if (!profile->HasProfileSyncService()) |
return NULL; |
ProfileSyncService* service = profile->GetProfileSyncService(); |