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 fdae27e11ea3cc870125c2fba9e82e6564cdc8c4..51870488e2e99b71032e2c80a77fadd9afdafa9c 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -957,6 +957,22 @@ bool ChromeContentBrowserClient::AllowSetCookie( |
return allow; |
} |
+bool ChromeContentBrowserClient::AllowPluginLocalDataAccess( |
+ const GURL& site_url, |
+ const GURL& plugin_url, |
+ content::ResourceContext* context) { |
+ ProfileIOData* io_data = ProfileIOData::FromResourceContext(context); |
+ return io_data->GetCookieSettings()->IsReadingCookieAllowed(site_url, |
+ plugin_url); |
+} |
+ |
+bool ChromeContentBrowserClient::AllowPluginLocalDataSessionOnly( |
+ const GURL& url, |
+ content::ResourceContext* context) { |
+ ProfileIOData* io_data = ProfileIOData::FromResourceContext(context); |
+ return io_data->GetCookieSettings()->IsCookieSessionOnly(url); |
+} |
+ |
bool ChromeContentBrowserClient::AllowSaveLocalState( |
content::ResourceContext* context) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |