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