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

Unified Diff: Source/modules/webdatabase/DatabaseContext.cpp

Issue 14142009: Remove Apple's unused implementation of private browsing from WebCore (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | « Source/WebCore/storage/StorageAreaImpl.cpp ('k') | Tools/DumpRenderTree/DumpRenderTree.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/DatabaseContext.cpp
diff --git a/Source/modules/webdatabase/DatabaseContext.cpp b/Source/modules/webdatabase/DatabaseContext.cpp
index 854b7f47dfdd036fd19d24cb87edfee8bfb214cd..e71ad4be09f23ff0977714e6de552ed1c5082380 100644
--- a/Source/modules/webdatabase/DatabaseContext.cpp
+++ b/Source/modules/webdatabase/DatabaseContext.cpp
@@ -204,9 +204,7 @@ bool DatabaseContext::allowDatabaseAccess() const
{
if (m_scriptExecutionContext->isDocument()) {
Document* document = toDocument(m_scriptExecutionContext);
- if (!document->page() || (document->page()->settings()->privateBrowsingEnabled() && !SchemeRegistry::allowsDatabaseAccessInPrivateBrowsing(document->securityOrigin()->protocol())))
- return false;
- return true;
+ return document->page();
}
ASSERT(m_scriptExecutionContext->isWorkerContext());
// allowDatabaseAccess is not yet implemented for workers.
« no previous file with comments | « Source/WebCore/storage/StorageAreaImpl.cpp ('k') | Tools/DumpRenderTree/DumpRenderTree.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698