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

Unified Diff: Source/core/inspector/InspectorApplicationCacheAgent.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/inspector/ContentSearchUtils.cpp ('k') | Source/core/inspector/InspectorInspectorAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorApplicationCacheAgent.cpp
diff --git a/Source/core/inspector/InspectorApplicationCacheAgent.cpp b/Source/core/inspector/InspectorApplicationCacheAgent.cpp
index eee0a546b1967dd538a729f3fc187eadd4d2e9d5..216381315d8c74bd9d50628a34de6dd95d92a6ea 100644
--- a/Source/core/inspector/InspectorApplicationCacheAgent.cpp
+++ b/Source/core/inspector/InspectorApplicationCacheAgent.cpp
@@ -181,19 +181,19 @@ PassRefPtr<TypeBuilder::ApplicationCache::ApplicationCacheResource> InspectorApp
{
StringBuilder builder;
if (resourceInfo.m_isMaster)
- builder.append("Master ");
+ builder.appendLiteral("Master ");
if (resourceInfo.m_isManifest)
- builder.append("Manifest ");
+ builder.appendLiteral("Manifest ");
if (resourceInfo.m_isFallback)
- builder.append("Fallback ");
+ builder.appendLiteral("Fallback ");
if (resourceInfo.m_isForeign)
- builder.append("Foreign ");
+ builder.appendLiteral("Foreign ");
if (resourceInfo.m_isExplicit)
- builder.append("Explicit ");
+ builder.appendLiteral("Explicit ");
RefPtr<TypeBuilder::ApplicationCache::ApplicationCacheResource> value = TypeBuilder::ApplicationCache::ApplicationCacheResource::create()
.setUrl(resourceInfo.m_resource.string())
« no previous file with comments | « Source/core/inspector/ContentSearchUtils.cpp ('k') | Source/core/inspector/InspectorInspectorAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698