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

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: Profile helper function, 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
« no previous file with comments | « chrome/browser/ui/webui/quota_internals_handler.cc ('k') | chrome/browser/ui/webui/sync_setup_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « chrome/browser/ui/webui/quota_internals_handler.cc ('k') | chrome/browser/ui/webui/sync_setup_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698