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

Unified Diff: gin/initialize.cc

Issue 60613003: Add a dependency from Gin to base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « gin/gin.gyp ('k') | gin/modules/module_registry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/initialize.cc
diff --git a/gin/initialize.cc b/gin/initialize.cc
index 64b59080780f5400c2b81d74a19b80a581f00b48..d95470f77309f1896d832a78945be0e80fe6c3b8 100644
--- a/gin/initialize.cc
+++ b/gin/initialize.cc
@@ -27,7 +27,7 @@ void Initialize() {
v8::V8::SetArrayBufferAllocator(ArrayBufferAllocator::SharedInstance());
v8::V8::InitializeICU();
v8::V8::SetFlagsFromString(kFlags,
- static_cast<uint32_t>(sizeof(kFlags) / sizeof(kFlags[0])) - 1);
+ static_cast<uint32_t>(arraysize(kFlags)) - 1);
v8::V8::SetEntropySource(&GenerateEntropy);
v8::V8::Initialize();
« no previous file with comments | « gin/gin.gyp ('k') | gin/modules/module_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698