summaryrefslogtreecommitdiffstats
path: root/webkit/glue/cpp_variant.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/cpp_variant.cc')
-rw-r--r--webkit/glue/cpp_variant.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/webkit/glue/cpp_variant.cc b/webkit/glue/cpp_variant.cc
index a254669..8545bc1 100644
--- a/webkit/glue/cpp_variant.cc
+++ b/webkit/glue/cpp_variant.cc
@@ -9,6 +9,7 @@
#include "webkit/glue/cpp_variant.h"
#include "base/logging.h"
#include "base/string_util.h"
+#include "base/stringprintf.h"
#include "base/utf_string_conversions.h"
using WebKit::WebBindings;
@@ -228,11 +229,11 @@ std::vector<std::wstring> CppVariant::ToStringVector() const {
length = NPVARIANT_TO_INT32(length_value);
WebBindings::releaseVariantValue(&length_value);
- // For sanity, only allow 100 items.
- length = std::min(100, length);
+ // For sanity, only allow 60000 items.
+ length = std::min(60000, length);
for (int i = 0; i < length; ++i) {
// Get each of the items.
- std::string index = StringPrintf("%d", i);
+ std::string index = base::StringPrintf("%d", i);
NPIdentifier index_id = WebBindings::getStringIdentifier(index.c_str());
if (WebBindings::hasProperty(NULL, np_value, index_id)) {
NPVariant index_value;