summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_constants.cc
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-30 05:25:17 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-30 05:25:17 +0000
commitf0af6a7ccfde1fb8068f89b190337c1a8ef99890 (patch)
tree15ab1d791684e29cf46e9eb8032abb40faf32746 /chrome/common/chrome_constants.cc
parentb664c3c97b36f6cb1a831641ca1b42e90f259b1b (diff)
downloadchromium_src-f0af6a7ccfde1fb8068f89b190337c1a8ef99890.zip
chromium_src-f0af6a7ccfde1fb8068f89b190337c1a8ef99890.tar.gz
chromium_src-f0af6a7ccfde1fb8068f89b190337c1a8ef99890.tar.bz2
Enforce a max length for document titles.
R=deanm BUG=http://crbug.com/12810 TEST=None Review URL: http://codereview.chromium.org/113969 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17282 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_constants.cc')
-rw-r--r--chrome/common/chrome_constants.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/common/chrome_constants.cc b/chrome/common/chrome_constants.cc
index f15f04a..93d4dc8 100644
--- a/chrome/common/chrome_constants.cc
+++ b/chrome/common/chrome_constants.cc
@@ -82,6 +82,8 @@ const unsigned int kMaxRendererProcessCount = 42;
const int kStatsMaxThreads = 32;
const int kStatsMaxCounters = 300;
+const size_t kMaxTitleChars = 4 * 1024;
+
// We don't enable record mode in the released product because users could
// potentially be tricked into running a product in record mode without
// knowing it. Enable in debug builds. Playback mode is allowed always,