| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/common/chrome_constants.h" | 5 #include "chrome/common/chrome_constants.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 | 8 |
| 9 #define FPL FILE_PATH_LITERAL | 9 #define FPL FILE_PATH_LITERAL |
| 10 | 10 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 const FilePath::CharType kLoginDataFileName[] = FPL("Login Data"); | 109 const FilePath::CharType kLoginDataFileName[] = FPL("Login Data"); |
| 110 const FilePath::CharType kJumpListIconDirname[] = FPL("JumpListIcons"); | 110 const FilePath::CharType kJumpListIconDirname[] = FPL("JumpListIcons"); |
| 111 const FilePath::CharType kWebAppDirname[] = FPL("Web Applications"); | 111 const FilePath::CharType kWebAppDirname[] = FPL("Web Applications"); |
| 112 | 112 |
| 113 // This number used to be limited to 32 in the past (see b/535234). | 113 // This number used to be limited to 32 in the past (see b/535234). |
| 114 const unsigned int kMaxRendererProcessCount = 42; | 114 const unsigned int kMaxRendererProcessCount = 42; |
| 115 const int kStatsMaxThreads = 32; | 115 const int kStatsMaxThreads = 32; |
| 116 const int kStatsMaxCounters = 300; | 116 const int kStatsMaxCounters = 300; |
| 117 | 117 |
| 118 const size_t kMaxTitleChars = 4 * 1024; | 118 const size_t kMaxTitleChars = 4 * 1024; |
| 119 const size_t kMaxURLChars = 10 * 1024 * 1024; |
| 119 | 120 |
| 120 // We don't enable record mode in the released product because users could | 121 // We don't enable record mode in the released product because users could |
| 121 // potentially be tricked into running a product in record mode without | 122 // potentially be tricked into running a product in record mode without |
| 122 // knowing it. Enable in debug builds. Playback mode is allowed always, | 123 // knowing it. Enable in debug builds. Playback mode is allowed always, |
| 123 // because it is useful for testing and not hazardous by itself. | 124 // because it is useful for testing and not hazardous by itself. |
| 124 #ifndef NDEBUG | 125 #ifndef NDEBUG |
| 125 const bool kRecordModeEnabled = true; | 126 const bool kRecordModeEnabled = true; |
| 126 #else | 127 #else |
| 127 const bool kRecordModeEnabled = false; | 128 const bool kRecordModeEnabled = false; |
| 128 #endif | 129 #endif |
| 129 | 130 |
| 130 } // namespace chrome | 131 } // namespace chrome |
| 131 | 132 |
| 132 #undef FPL | 133 #undef FPL |
| OLD | NEW |