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 "chromeos/chromeos_switches.h" | 5 #include "chromeos/chromeos_switches.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
9 | 9 |
10 // TODO(rsorokin): alphabetize all of these switches so they | 10 // TODO(rsorokin): alphabetize all of these switches so they |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 319 |
320 // Disable automatic timezone update. | 320 // Disable automatic timezone update. |
321 const char kDisableTimeZoneTrackingOption[] = | 321 const char kDisableTimeZoneTrackingOption[] = |
322 "disable-timezone-tracking-option"; | 322 "disable-timezone-tracking-option"; |
323 | 323 |
324 // Disable new GAIA sign-in flow. | 324 // Disable new GAIA sign-in flow. |
325 const char kDisableWebviewSigninFlow[] = "disable-webview-signin-flow"; | 325 const char kDisableWebviewSigninFlow[] = "disable-webview-signin-flow"; |
326 | 326 |
327 // Enables searching for an app that supports a plugged in USB printer. When a | 327 // Enables searching for an app that supports a plugged in USB printer. When a |
328 // user plugs in USB printer, they are shown a notification offering to search | 328 // user plugs in USB printer, they are shown a notification offering to search |
329 // Chroem Web Store for an app that has printerProvider permission and can | 329 // Chrome Web Store for an app that has printerProvider permission and can |
330 // handle the plugged in printer. | 330 // handle the plugged in printer. |
331 const char kEnablePrinterAppSearch[] = "enable-printer-app-search"; | 331 const char kEnablePrinterAppSearch[] = "enable-printer-app-search"; |
332 | 332 |
333 // Switches and optional value for Data Saver prompt on cellular networks. | 333 // Switches and optional value for Data Saver prompt on cellular networks. |
334 const char kDisableDataSaverPrompt[] = "disable-datasaver-prompt"; | 334 const char kDisableDataSaverPrompt[] = "disable-datasaver-prompt"; |
335 const char kEnableDataSaverPrompt[] = "enable-datasaver-prompt"; | 335 const char kEnableDataSaverPrompt[] = "enable-datasaver-prompt"; |
336 const char kDataSaverPromptDemoMode[] = "demo"; | 336 const char kDataSaverPromptDemoMode[] = "demo"; |
337 | 337 |
338 bool WakeOnWifiEnabled() { | 338 bool WakeOnWifiEnabled() { |
339 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); | 339 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 if (option == kAggressiveTabDiscardThreshold) | 377 if (option == kAggressiveTabDiscardThreshold) |
378 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE_TAB_DISCARD; | 378 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE_TAB_DISCARD; |
379 if (option == kAggressiveThreshold) | 379 if (option == kAggressiveThreshold) |
380 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE; | 380 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE; |
381 | 381 |
382 return MemoryPressureMonitor::THRESHOLD_DEFAULT; | 382 return MemoryPressureMonitor::THRESHOLD_DEFAULT; |
383 } | 383 } |
384 | 384 |
385 } // namespace switches | 385 } // namespace switches |
386 } // namespace chromeos | 386 } // namespace chromeos |
OLD | NEW |