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