From 6e2d3d229024a3a0038c8a5c169bfd948a5c4939 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Fri, 24 Feb 2012 18:10:36 +0000 Subject: Remove usage of WebKitContext from chrome. This also cleans up the chrome code so that it only calls profile-wide operations (i.e. saving session/purging memory/clearing local state on exit) on the BrowserContext. The content layer takes care of calling the necessary objects on the right thread. WebKitContext now does almost nothing and I'll remove it completely in the next change. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9462007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123509 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/browser_list.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser/ui/browser_list.cc') diff --git a/chrome/browser/ui/browser_list.cc b/chrome/browser/ui/browser_list.cc index 2ebcc00..7bb5736 100644 --- a/chrome/browser/ui/browser_list.cc +++ b/chrome/browser/ui/browser_list.cc @@ -522,7 +522,7 @@ void BrowserList::AttemptRestart() { switches::kEnableRestoreSessionState)) { BrowserVector::const_iterator it; for (it = begin(); it != end(); ++it) - (*it)->profile()->SaveSessionState(); + content::BrowserContext::SaveSessionState((*it)->profile()); } PrefService* pref_service = g_browser_process->local_state(); -- cgit v1.1