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

Unified Diff: third_party/WebKit/Source/platform/network/HTTPParsers.cpp

Issue 2638623004: Stop using DEFINE_STATIC_LOCAL in ResourceResponse.cpp. (Closed)
Patch Set: use const char[] Created 3 years, 11 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: third_party/WebKit/Source/platform/network/HTTPParsers.cpp
diff --git a/third_party/WebKit/Source/platform/network/HTTPParsers.cpp b/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
index 456db9c35bb382ad0bd598edd816cd371a786100..3ca4b69350a71ee5876be1be4d016cd8d47081de 100644
--- a/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
+++ b/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
@@ -703,13 +703,11 @@ CacheControlHeader parseCacheControlDirectives(
cacheControlHeader.staleWhileRevalidate =
std::numeric_limits<double>::quiet_NaN();
- DEFINE_STATIC_LOCAL(const AtomicString, noCacheDirective, ("no-cache"));
- DEFINE_STATIC_LOCAL(const AtomicString, noStoreDirective, ("no-store"));
- DEFINE_STATIC_LOCAL(const AtomicString, mustRevalidateDirective,
- ("must-revalidate"));
- DEFINE_STATIC_LOCAL(const AtomicString, maxAgeDirective, ("max-age"));
- DEFINE_STATIC_LOCAL(const AtomicString, staleWhileRevalidateDirective,
- ("stale-while-revalidate"));
+ static const char noCacheDirective[] = "no-cache";
+ static const char noStoreDirective[] = "no-store";
+ static const char mustRevalidateDirective[] = "must-revalidate";
+ static const char maxAgeDirective[] = "max-age";
+ static const char staleWhileRevalidateDirective[] = "stale-while-revalidate";
if (!cacheControlValue.isEmpty()) {
Vector<std::pair<String, String>> directives;
« no previous file with comments | « third_party/WebKit/Source/platform/BUILD.gn ('k') | third_party/WebKit/Source/platform/network/ResourceResponse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698