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

Unified Diff: Source/modules/quota/StorageQuota.cpp

Issue 469773002: Cleanup blink:: prefix usage in Source/core/modules/[mediasource/*.cpp to websockets/*.cpp] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
Index: Source/modules/quota/StorageQuota.cpp
diff --git a/Source/modules/quota/StorageQuota.cpp b/Source/modules/quota/StorageQuota.cpp
index 8461cc438e1ce4b25bb36215b80d0605b3636b50..fec0e6beae38184fe662b2cfd692298daa2dc2a1 100644
--- a/Source/modules/quota/StorageQuota.cpp
+++ b/Source/modules/quota/StorageQuota.cpp
@@ -49,23 +49,23 @@ namespace blink {
namespace {
struct StorageTypeMapping {
- blink::WebStorageQuotaType type;
+ WebStorageQuotaType type;
const char* const name;
};
const StorageTypeMapping storageTypeMappings[] = {
- { blink::WebStorageQuotaTypeTemporary, "temporary" },
- { blink::WebStorageQuotaTypePersistent, "persistent" },
+ { WebStorageQuotaTypeTemporary, "temporary" },
+ { WebStorageQuotaTypePersistent, "persistent" },
};
-blink::WebStorageQuotaType stringToStorageQuotaType(const String& type)
+WebStorageQuotaType stringToStorageQuotaType(const String& type)
{
for (size_t i = 0; i < WTF_ARRAY_LENGTH(storageTypeMappings); ++i) {
if (storageTypeMappings[i].name == type)
return storageTypeMappings[i].type;
}
ASSERT_NOT_REACHED();
- return blink::WebStorageQuotaTypeTemporary;
+ return WebStorageQuotaTypeTemporary;
}
} // namespace
@@ -96,7 +96,7 @@ ScriptPromise StorageQuota::queryInfo(ScriptState* scriptState, String type)
KURL storagePartition = KURL(KURL(), securityOrigin->toString());
OwnPtr<StorageQuotaCallbacks> callbacks = StorageQuotaCallbacksImpl::create(resolver);
- blink::Platform::current()->queryStorageUsageAndQuota(storagePartition, stringToStorageQuotaType(type), callbacks.release());
+ Platform::current()->queryStorageUsageAndQuota(storagePartition, stringToStorageQuotaType(type), callbacks.release());
return promise;
}
« no previous file with comments | « Source/modules/quota/DeprecatedStorageQuotaCallbacksImpl.cpp ('k') | Source/modules/quota/StorageQuotaCallbacksImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698