OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 FPL("pepflashplayer.dll"); | 174 FPL("pepflashplayer.dll"); |
175 #else // OS_LINUX, etc. | 175 #else // OS_LINUX, etc. |
176 FPL("libpepflashplayer.so"); | 176 FPL("libpepflashplayer.so"); |
177 #endif | 177 #endif |
178 | 178 |
179 // We don't enable record mode in the released product because users could | 179 // We don't enable record mode in the released product because users could |
180 // potentially be tricked into running a product in record mode without | 180 // potentially be tricked into running a product in record mode without |
181 // knowing it. Enable in debug builds. Playback mode is allowed always, | 181 // knowing it. Enable in debug builds. Playback mode is allowed always, |
182 // because it is useful for testing and not hazardous by itself. | 182 // because it is useful for testing and not hazardous by itself. |
183 #ifndef NDEBUG | 183 #ifndef NDEBUG |
| 184 // const bool kRecordModeEnabled = true; |
| 185 #else |
| 186 // const bool kRecordModeEnabled = false; |
| 187 #endif |
| 188 |
184 const bool kRecordModeEnabled = true; | 189 const bool kRecordModeEnabled = true; |
185 #else | |
186 const bool kRecordModeEnabled = false; | |
187 #endif | |
188 | 190 |
189 const int kHistogramSynchronizerReservedSequenceNumber = 0; | 191 const int kHistogramSynchronizerReservedSequenceNumber = 0; |
190 | 192 |
191 const char* const kUnknownLanguageCode = "und"; | 193 const char* const kUnknownLanguageCode = "und"; |
192 | 194 |
193 const int kJavascriptMessageExpectedDelay = 1000; | 195 const int kJavascriptMessageExpectedDelay = 1000; |
194 | 196 |
195 const bool kEnableTouchIcon = false; | 197 const bool kEnableTouchIcon = false; |
196 | 198 |
197 const float kMaxShareOfExtensionProcesses = 0.30f; | 199 const float kMaxShareOfExtensionProcesses = 0.30f; |
198 | 200 |
199 #if defined(OS_LINUX) | 201 #if defined(OS_LINUX) |
200 extern const int kLowestRendererOomScore = 300; | 202 extern const int kLowestRendererOomScore = 300; |
201 extern const int kHighestRendererOomScore = 1000; | 203 extern const int kHighestRendererOomScore = 1000; |
202 #endif | 204 #endif |
203 | 205 |
204 #if defined(OS_WIN) | 206 #if defined(OS_WIN) |
205 // This is used by the PreRead experiment. | 207 // This is used by the PreRead experiment. |
206 const char kPreReadEnvironmentVariable[] = "CHROME_PRE_READ_EXPERIMENT"; | 208 const char kPreReadEnvironmentVariable[] = "CHROME_PRE_READ_EXPERIMENT"; |
207 const wchar_t kMetroChromeUserDataSubDir[] = L"Metro"; | 209 const wchar_t kMetroChromeUserDataSubDir[] = L"Metro"; |
208 const wchar_t kMetroNavigationAndSearchMessage[] = | 210 const wchar_t kMetroNavigationAndSearchMessage[] = |
209 L"CHROME_METRO_NAV_SEARCH_REQUEST"; | 211 L"CHROME_METRO_NAV_SEARCH_REQUEST"; |
210 const wchar_t kMetroGetCurrentTabInfoMessage[] = | 212 const wchar_t kMetroGetCurrentTabInfoMessage[] = |
211 L"CHROME_METRO_GET_CURRENT_TAB_INFO"; | 213 L"CHROME_METRO_GET_CURRENT_TAB_INFO"; |
212 #endif | 214 #endif |
213 | 215 |
214 } // namespace chrome | 216 } // namespace chrome |
215 | 217 |
216 #undef FPL | 218 #undef FPL |
OLD | NEW |