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..f6bc015d19aadd44afd64fecd936c6fd2657eba1 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& document_url, |
+ const GURL& plugin_url, |
+ content::ResourceContext* context) { |
+ ProfileIOData* io_data = ProfileIOData::FromResourceContext(context); |
viettrungluu
2012/08/01 13:57:14
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::I
Bernhard Bauer
2012/08/02 03:54:08
Done. We should probably have that check in Profil
|
+ return io_data->GetCookieSettings()->IsReadingCookieAllowed(document_url, |
+ plugin_url); |
+} |
+ |
+bool ChromeContentBrowserClient::AllowPluginLocalDataSessionOnly( |
+ const GURL& url, |
+ content::ResourceContext* context) { |
+ ProfileIOData* io_data = ProfileIOData::FromResourceContext(context); |
viettrungluu
2012/08/01 13:57:14
" ?
|
+ return io_data->GetCookieSettings()->IsCookieSessionOnly(url); |
+} |
+ |
bool ChromeContentBrowserClient::AllowSaveLocalState( |
content::ResourceContext* context) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |