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

Unified Diff: Source/modules/filesystem/DOMFileSystem.cpp

Issue 482753002: Use StringBuilder::appendLiteral() / StringBuilder::append(char) when possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | Source/modules/filesystem/DOMFileSystemBase.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/DOMFileSystem.cpp
diff --git a/Source/modules/filesystem/DOMFileSystem.cpp b/Source/modules/filesystem/DOMFileSystem.cpp
index 94a35385c4751740a0efd4f2f2916ad451c9f091..c27f92976feb95a974ccf5b4e79e341404755f97 100644
--- a/Source/modules/filesystem/DOMFileSystem.cpp
+++ b/Source/modules/filesystem/DOMFileSystem.cpp
@@ -67,19 +67,19 @@ DOMFileSystem* DOMFileSystem::createIsolatedFileSystem(ExecutionContext* context
StringBuilder filesystemName;
filesystemName.append(createDatabaseIdentifierFromSecurityOrigin(context->securityOrigin()));
- filesystemName.append(":Isolated_");
+ filesystemName.appendLiteral(":Isolated_");
filesystemName.append(filesystemId);
// The rootURL created here is going to be attached to each filesystem request and
// is to be validated each time the request is being handled.
StringBuilder rootURL;
- rootURL.append("filesystem:");
+ rootURL.appendLiteral("filesystem:");
rootURL.append(context->securityOrigin()->toString());
- rootURL.append("/");
+ rootURL.append('/');
rootURL.append(isolatedPathPrefix);
- rootURL.append("/");
+ rootURL.append('/');
rootURL.append(filesystemId);
- rootURL.append("/");
+ rootURL.append('/');
return DOMFileSystem::create(context, filesystemName.toString(), FileSystemTypeIsolated, KURL(ParsedURLString, rootURL.toString()));
}
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | Source/modules/filesystem/DOMFileSystemBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698