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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp

Issue 1636873005: blink: Fix naming and const-ness of constants and non-constants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constants: indents Created 4 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/bindings/core/v8/V8ScriptRunner.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
index 3ab46dd5b836bd9e679a98b3b86277aa1c7f36df..c0e0b4515408b123be5ea7d8757fc10f8347854c 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
@@ -195,7 +195,7 @@ void setCacheTimeStamp(CachedMetadataHandler* cacheHandler)
// Check previously stored timestamp.
bool isResourceHotForCaching(CachedMetadataHandler* cacheHandler, int hotHours)
{
- const double kCacheWithinSeconds = hotHours * 60 * 60;
+ const double cacheWithinSeconds = hotHours * 60 * 60;
unsigned tag = cacheTag(CacheTagTimeStamp, cacheHandler);
CachedMetadata* cachedMetadata = cacheHandler->cachedMetadata(tag);
if (!cachedMetadata)
@@ -204,7 +204,7 @@ bool isResourceHotForCaching(CachedMetadataHandler* cacheHandler, int hotHours)
const int size = sizeof(timeStamp);
ASSERT(cachedMetadata->size() == size);
memcpy(&timeStamp, cachedMetadata->data(), size);
- return (WTF::currentTime() - timeStamp) < kCacheWithinSeconds;
+ return (WTF::currentTime() - timeStamp) < cacheWithinSeconds;
}
// Final compile call for a streamed compilation. Most decisions have already

Powered by Google App Engine
This is Rietveld 408576698