summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_content_browser_client.cc
diff options
context:
space:
mode:
authormirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-30 18:51:54 +0000
committermirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-30 18:51:54 +0000
commitd5a1916d50693b037f983a893c74f9408692dd2b (patch)
tree9cfd9a468b80b13c3f8cc3ac38522add9527e58a /chrome/browser/chrome_content_browser_client.cc
parente08ac26c039520b8bfdcf518f5b7de64cdadd0b7 (diff)
downloadchromium_src-d5a1916d50693b037f983a893c74f9408692dd2b.zip
chromium_src-d5a1916d50693b037f983a893c74f9408692dd2b.tar.gz
chromium_src-d5a1916d50693b037f983a893c74f9408692dd2b.tar.bz2
Make kClearSiteDataOnExit work for Flash plugins in a multi-profile environment.
Because Flash data is global among all profiles (and all browsers) on a machine, we can't clear site data easily per profile on exit. Instead, if this flag is set, we run Flash instances in Incognito mode for profiles that want to leave no data stored on exit. BUG=80794 TEST= Review URL: http://codereview.chromium.org/7230052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91168 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_content_browser_client.cc')
-rw-r--r--chrome/browser/chrome_content_browser_client.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index e46541d..51066c7 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -405,6 +405,14 @@ bool ChromeContentBrowserClient::AllowSetCookie(
return allow;
}
+bool ChromeContentBrowserClient::AllowSaveLocalState(
+ const content::ResourceContext& context) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ ProfileIOData* io_data =
+ reinterpret_cast<ProfileIOData*>(context.GetUserData(NULL));
+ return !io_data->clear_local_state_on_exit()->GetValue();
+}
+
QuotaPermissionContext*
ChromeContentBrowserClient::CreateQuotaPermissionContext() {
return new ChromeQuotaPermissionContext();