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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 9965012: Honor session content settings even if "continue where I left off" is selected. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only honor the "clear on exit", not session-only cookies. Created 8 years, 9 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 | « no previous file | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 69969fda602a686b7a44f785e9a825099f0c9a37..40df6d2465de1e7e9b2563ae9d9870dd05c7b4de 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -911,17 +911,7 @@ bool ChromeContentBrowserClient::AllowSaveLocalState(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
ProfileIOData* io_data = ProfileIOData::FromResourceContext(context);
- if (!io_data->clear_local_state_on_exit()->GetValue())
- return true;
-
- // Disable clearing the local state on exit if the browsing session is going
- // to be restored on the next startup.
- SessionStartupPref::Type startup_pref =
- SessionStartupPref::PrefValueToType(
- io_data->session_startup_pref()->GetValue());
- return (startup_pref == SessionStartupPref::LAST &&
- !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableRestoreSessionState));
+ return !io_data->clear_local_state_on_exit()->GetValue();
}
bool ChromeContentBrowserClient::AllowWorkerDatabase(
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698