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

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 2527973003: Consolidate code monitoring low memory kills and OOM kills to MemoryKillsMonitor on ChromeOS. (Closed)
Patch Set: restrict it to ChromeoS Created 4 years 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
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 "chromeos/chromeos_switches.h" 5 #include "chromeos/chromeos_switches.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 // Specifies the profile to use once a chromeos user is logged in. 349 // Specifies the profile to use once a chromeos user is logged in.
350 // This parameter is ignored if user goes through login screen since user_id 350 // This parameter is ignored if user goes through login screen since user_id
351 // hash defines which profile directory to use. 351 // hash defines which profile directory to use.
352 // In case of browser restart within active session this parameter is used 352 // In case of browser restart within active session this parameter is used
353 // to pass user_id hash for primary user. 353 // to pass user_id hash for primary user.
354 const char kLoginProfile[] = "login-profile"; 354 const char kLoginProfile[] = "login-profile";
355 355
356 // Specifies the user which is already logged in. 356 // Specifies the user which is already logged in.
357 const char kLoginUser[] = "login-user"; 357 const char kLoginUser[] = "login-user";
358 358
359 // The log file to record process kills due to memory pressure.
360 const char kMemoryKillsLog[] = "memory-kills-log";
361
359 // The memory pressure threshold selection which is used to decide whether and 362 // The memory pressure threshold selection which is used to decide whether and
360 // when a memory pressure event needs to get fired. 363 // when a memory pressure event needs to get fired.
361 const char kMemoryPressureThresholds[] = "memory-pressure-thresholds"; 364 const char kMemoryPressureThresholds[] = "memory-pressure-thresholds";
362 365
363 // Enables natural scroll by default. 366 // Enables natural scroll by default.
364 const char kNaturalScrollDefault[] = "enable-natural-scroll-default"; 367 const char kNaturalScrollDefault[] = "enable-natural-scroll-default";
365 368
366 // An optional comma-separated list of IDs of apps that can be used to take 369 // An optional comma-separated list of IDs of apps that can be used to take
367 // notes. If unset, a hardcoded list is used instead. 370 // notes. If unset, a hardcoded list is used instead.
368 const char kNoteTakingAppIds[] = "note-taking-app-ids"; 371 const char kNoteTakingAppIds[] = "note-taking-app-ids";
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 478 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
476 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) 479 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration))
477 return false; 480 return false;
478 481
479 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == 482 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) ==
480 kTestCrosGaiaIdMigrationStarted; 483 kTestCrosGaiaIdMigrationStarted;
481 } 484 }
482 485
483 } // namespace switches 486 } // namespace switches
484 } // namespace chromeos 487 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698