Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: chrome/common/chrome_constants.cc

Issue 23534009: Re-enable pre-read experiment as a finch field trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comment and rebase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/chrome_constants.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/files/file_path.h" 7 #include "base/files/file_path.h"
8 8
9 #define FPL FILE_PATH_LITERAL 9 #define FPL FILE_PATH_LITERAL
10 10
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 const int kJavaScriptMessageExpectedDelay = 1000; 223 const int kJavaScriptMessageExpectedDelay = 1000;
224 224
225 #if defined(OS_ANDROID) 225 #if defined(OS_ANDROID)
226 const bool kEnableTouchIcon = true; 226 const bool kEnableTouchIcon = true;
227 #else 227 #else
228 const bool kEnableTouchIcon = false; 228 const bool kEnableTouchIcon = false;
229 #endif 229 #endif
230 230
231 const float kMaxShareOfExtensionProcesses = 0.30f; 231 const float kMaxShareOfExtensionProcesses = 0.30f;
232 232
233 // This is used by the PreRead experiment.
234 const char kPreReadEnvironmentVariable[] = "CHROME_PRE_READ_EXPERIMENT";
235
233 #if defined(OS_LINUX) 236 #if defined(OS_LINUX)
234 const int kLowestRendererOomScore = 300; 237 const int kLowestRendererOomScore = 300;
235 const int kHighestRendererOomScore = 1000; 238 const int kHighestRendererOomScore = 1000;
236 #endif 239 #endif
237 240
238 #if defined(OS_WIN) 241 #if defined(OS_WIN)
239 // This is used by the PreRead experiment.
240 const char kPreReadEnvironmentVariable[] = "CHROME_PRE_READ_EXPERIMENT";
241 // This is used by chrome in Windows 8 metro mode. 242 // This is used by chrome in Windows 8 metro mode.
242 const wchar_t kMetroChromeUserDataSubDir[] = L"Metro"; 243 const wchar_t kMetroChromeUserDataSubDir[] = L"Metro";
243 const wchar_t kMetroNavigationAndSearchMessage[] = 244 const wchar_t kMetroNavigationAndSearchMessage[] =
244 L"CHROME_METRO_NAV_SEARCH_REQUEST"; 245 L"CHROME_METRO_NAV_SEARCH_REQUEST";
245 const wchar_t kMetroGetCurrentTabInfoMessage[] = 246 const wchar_t kMetroGetCurrentTabInfoMessage[] =
246 L"CHROME_METRO_GET_CURRENT_TAB_INFO"; 247 L"CHROME_METRO_GET_CURRENT_TAB_INFO";
247 const wchar_t kMetroRegistryPath[] = 248 const wchar_t kMetroRegistryPath[] =
248 L"Software\\" PRODUCT_STRING_PATH L"\\Metro"; 249 L"Software\\" PRODUCT_STRING_PATH L"\\Metro";
249 const wchar_t kLaunchModeValue[] = L"launch_mode"; 250 const wchar_t kLaunchModeValue[] = L"launch_mode";
250 // This is used by breakpad and the metrics reporting. 251 // This is used by breakpad and the metrics reporting.
251 const wchar_t kBrowserCrashDumpAttemptsRegistryPath[] = 252 const wchar_t kBrowserCrashDumpAttemptsRegistryPath[] =
252 L"Software\\" PRODUCT_STRING_PATH L"\\BrowserCrashDumpAttempts"; 253 L"Software\\" PRODUCT_STRING_PATH L"\\BrowserCrashDumpAttempts";
253 #endif 254 #endif
254 255
255 #if defined(OS_CHROMEOS) 256 #if defined(OS_CHROMEOS)
256 const char kProfileDirPrefix[] = "u-"; 257 const char kProfileDirPrefix[] = "u-";
257 #endif 258 #endif
258 259
259 // This GUID is associated with any 'don't ask me again' settings that the 260 // This GUID is associated with any 'don't ask me again' settings that the
260 // user can select for different file types. 261 // user can select for different file types.
261 // {2676A9A2-D919-4FEE-9187-152100393AB2} 262 // {2676A9A2-D919-4FEE-9187-152100393AB2}
262 const char kApplicationClientIDStringForAVScanning[] = 263 const char kApplicationClientIDStringForAVScanning[] =
263 "2676A9A2-D919-4FEE-9187-152100393AB2"; 264 "2676A9A2-D919-4FEE-9187-152100393AB2";
264 265
265 } // namespace chrome 266 } // namespace chrome
266 267
267 #undef FPL 268 #undef FPL
OLDNEW
« no previous file with comments | « chrome/common/chrome_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698