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

Unified Diff: Source/WebCore/platform/network/BlobRegistryImpl.cpp

Issue 13497009: Remove ENABLE(FILE_SYSTEM) compile-time flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: added CodeGeneratorInspector.py change 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/platform/network/BlobData.cpp ('k') | Source/WebCore/platform/network/FormData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/platform/network/BlobRegistryImpl.cpp
diff --git a/Source/WebCore/platform/network/BlobRegistryImpl.cpp b/Source/WebCore/platform/network/BlobRegistryImpl.cpp
index bc12849944a3df17ceb0347e7384ca2d4aae223b..76e0c35b5d7fc01cef7c536776218593c547736c 100644
--- a/Source/WebCore/platform/network/BlobRegistryImpl.cpp
+++ b/Source/WebCore/platform/network/BlobRegistryImpl.cpp
@@ -93,10 +93,8 @@ void BlobRegistryImpl::appendStorageItems(BlobStorageData* blobStorageData, cons
for (BlobDataItemList::const_iterator iter = items.begin(); iter != items.end(); ++iter) {
if (iter->type == BlobDataItem::Data)
blobStorageData->m_data.appendData(iter->data, iter->offset, iter->length);
-#if ENABLE(FILE_SYSTEM)
else if (iter->type == BlobDataItem::URL)
blobStorageData->m_data.appendURL(iter->url, iter->offset, iter->length, iter->expectedModificationTime);
-#endif
else {
ASSERT(iter->type == BlobDataItem::File);
blobStorageData->m_data.appendFile(iter->path, iter->offset, iter->length, iter->expectedModificationTime);
@@ -123,10 +121,8 @@ void BlobRegistryImpl::appendStorageItems(BlobStorageData* blobStorageData, cons
long long newLength = currentLength > length ? length : currentLength;
if (iter->type == BlobDataItem::Data)
blobStorageData->m_data.appendData(iter->data, iter->offset + offset, newLength);
-#if ENABLE(FILE_SYSTEM)
else if (iter->type == BlobDataItem::URL)
blobStorageData->m_data.appendURL(iter->url, iter->offset + offset, newLength, iter->expectedModificationTime);
-#endif
else {
ASSERT(iter->type == BlobDataItem::File);
blobStorageData->m_data.appendFile(iter->path, iter->offset + offset, newLength, iter->expectedModificationTime);
@@ -157,11 +153,9 @@ void BlobRegistryImpl::registerBlobURL(const KURL& url, PassOwnPtr<BlobData> blo
case BlobDataItem::File:
blobStorageData->m_data.appendFile(iter->path, iter->offset, iter->length, iter->expectedModificationTime);
break;
-#if ENABLE(FILE_SYSTEM)
case BlobDataItem::URL:
blobStorageData->m_data.appendURL(iter->url, iter->offset, iter->length, iter->expectedModificationTime);
break;
-#endif
case BlobDataItem::Blob:
if (m_blobs.contains(iter->url.string()))
appendStorageItems(blobStorageData.get(), m_blobs.get(iter->url.string())->items(), iter->offset, iter->length);
« no previous file with comments | « Source/WebCore/platform/network/BlobData.cpp ('k') | Source/WebCore/platform/network/FormData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698