Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3735)

Unified Diff: chrome/browser/ui/webui/sessions_ui.cc

Issue 7554008: Removal of Profile from content part 6. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698