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

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

Issue 12183008: ThreadWatcher - Added jankiness monitor for FILE thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_switches.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_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 const char kConflictingModulesCheck[] = "conflicting-modules-check"; 195 const char kConflictingModulesCheck[] = "conflicting-modules-check";
196 196
197 // Toggles a new version of the content settings dialog in options. 197 // Toggles a new version of the content settings dialog in options.
198 const char kContentSettings2[] = "new-content-settings"; 198 const char kContentSettings2[] = "new-content-settings";
199 199
200 // The Country we should use. This is normally obtained from the operating 200 // The Country we should use. This is normally obtained from the operating
201 // system during first run and cached in the preferences afterwards. This is a 201 // system during first run and cached in the preferences afterwards. This is a
202 // string value, the 2 letter code from ISO 3166-1. 202 // string value, the 2 letter code from ISO 3166-1.
203 const char kCountry[] = "country"; 203 const char kCountry[] = "country";
204 204
205 // Causes the browser process to crash if browser threads are not responding
206 // for the given number of seconds.
207 const char kCrashOnHangSeconds[] = "crash-on-hang-seconds";
208
209 // Comma-separated list of BrowserThreads that cause browser process to crash 205 // Comma-separated list of BrowserThreads that cause browser process to crash
210 // if the given browser thread is not responsive. UI,IO,DB,FILE,CACHE are the 206 // if the given browser thread is not responsive. UI,IO,DB,FILE,CACHE are the
211 // list of BrowserThreads that are supported. 207 // list of BrowserThreads that are supported.
212 // 208 //
213 // For example: 209 // For example:
214 // --crash-on-hang-threads=UI:3,IO:3 --> Crash the browser if UI or IO thread 210 // --crash-on-hang-threads=UI:3:18,IO:3:18 --> Crash the browser if UI or IO
215 // is not responsive and the number of 211 // is not responsive for 18 seconds and the number of browser threads that
216 // browser threads that are responding 212 // are responding is less than or equal to 3.
217 // is less than or equal to 3.
218 const char kCrashOnHangThreads[] = "crash-on-hang-threads"; 213 const char kCrashOnHangThreads[] = "crash-on-hang-threads";
219 214
220 // Some platforms like ChromeOS default to empty desktop. 215 // Some platforms like ChromeOS default to empty desktop.
221 // Browser tests may need to add this switch so that at least one browser 216 // Browser tests may need to add this switch so that at least one browser
222 // instance is created on startup. 217 // instance is created on startup.
223 // TODO(nkostylev): Investigate if this switch could be removed. 218 // TODO(nkostylev): Investigate if this switch could be removed.
224 // (http://crbug.com/148675) 219 // (http://crbug.com/148675)
225 const char kCreateBrowserOnStartupForTests[] = 220 const char kCreateBrowserOnStartupForTests[] =
226 "create-browser-on-startup-for-tests"; 221 "create-browser-on-startup-for-tests";
227 222
(...skipping 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 1650
1656 // ----------------------------------------------------------------------------- 1651 // -----------------------------------------------------------------------------
1657 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1652 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1658 // 1653 //
1659 // You were going to just dump your switches here, weren't you? Instead, please 1654 // You were going to just dump your switches here, weren't you? Instead, please
1660 // put them in alphabetical order above, or in order inside the appropriate 1655 // put them in alphabetical order above, or in order inside the appropriate
1661 // ifdef at the bottom. The order should match the header. 1656 // ifdef at the bottom. The order should match the header.
1662 // ----------------------------------------------------------------------------- 1657 // -----------------------------------------------------------------------------
1663 1658
1664 } // namespace switches 1659 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698