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

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 954293003: Support badges and connecting animation in cr-network-icon element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More Feedback Created 5 years, 9 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
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 "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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 const char kOobeGuestSession[] = "oobe-guest-session"; 254 const char kOobeGuestSession[] = "oobe-guest-session";
255 255
256 // Specifies power stub behavior: 256 // Specifies power stub behavior:
257 // 'cycle=2' - Cycles power states every 2 seconds. 257 // 'cycle=2' - Cycles power states every 2 seconds.
258 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details. 258 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details.
259 const char kPowerStub[] = "power-stub"; 259 const char kPowerStub[] = "power-stub";
260 260
261 // Overrides network stub behavior. By default, ethernet, wifi and vpn are 261 // Overrides network stub behavior. By default, ethernet, wifi and vpn are
262 // enabled, and transitions occur instantaneously. Multiple options can be 262 // enabled, and transitions occur instantaneously. Multiple options can be
263 // comma separated (no spaces). Note: all options are in the format 'foo=x'. 263 // comma separated (no spaces). Note: all options are in the format 'foo=x'.
264 // Values are case sensitive and based on Shill names in service_constants.h.
264 // See FakeShillManagerClient::SetInitialNetworkState for implementation. 265 // See FakeShillManagerClient::SetInitialNetworkState for implementation.
265 // Examples: 266 // Examples:
266 // 'clear=1' - Clears all default configurations 267 // 'clear=1' - Clears all default configurations
267 // 'wifi=on' - A wifi network is initially connected ('1' also works) 268 // 'wifi=on' - A wifi network is initially connected ('1' also works)
268 // 'wifi=off' - Wifi networks are all initially disconnected ('0' also works) 269 // 'wifi=off' - Wifi networks are all initially disconnected ('0' also works)
269 // 'wifi=disabled' - Wifi is initially disabled 270 // 'wifi=disabled' - Wifi is initially disabled
270 // 'wifi=none' - Wifi is unavailable 271 // 'wifi=none' - Wifi is unavailable
271 // 'wifi=portal' - Wifi connection will be in Portal state 272 // 'wifi=portal' - Wifi connection will be in Portal state
272 // 'cellular=1' - Cellular is initially connected 273 // 'cellular=1' - Cellular is initially connected
274 // 'cellular=LTE' - Cellular is initially connected, technology is LTE
273 // 'interactive=3' - Interactive mode, connect/scan/etc requests take 3 secs 275 // 'interactive=3' - Interactive mode, connect/scan/etc requests take 3 secs
274 const char kShillStub[] = "shill-stub"; 276 const char kShillStub[] = "shill-stub";
275 277
276 // Sends test messages on first call to RequestUpdate (stub only). 278 // Sends test messages on first call to RequestUpdate (stub only).
277 const char kSmsTestMessages[] = "sms-test-messages"; 279 const char kSmsTestMessages[] = "sms-test-messages";
278 280
279 // Indicates that a stub implementation of CrosSettings that stores settings in 281 // Indicates that a stub implementation of CrosSettings that stores settings in
280 // memory without signing should be used, treating current user as the owner. 282 // memory without signing should be used, treating current user as the owner.
281 // This option is for testing the chromeos build of chrome on the desktop only. 283 // This option is for testing the chromeos build of chrome on the desktop only.
282 const char kStubCrosSettings[] = "stub-cros-settings"; 284 const char kStubCrosSettings[] = "stub-cros-settings";
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 return base::MemoryPressureObserverChromeOS:: 366 return base::MemoryPressureObserverChromeOS::
365 THRESHOLD_AGGRESSIVE_TAB_DISCARD; 367 THRESHOLD_AGGRESSIVE_TAB_DISCARD;
366 if (option == kAggressiveThreshold) 368 if (option == kAggressiveThreshold)
367 return base::MemoryPressureObserverChromeOS::THRESHOLD_AGGRESSIVE; 369 return base::MemoryPressureObserverChromeOS::THRESHOLD_AGGRESSIVE;
368 370
369 return base::MemoryPressureObserverChromeOS::THRESHOLD_DEFAULT; 371 return base::MemoryPressureObserverChromeOS::THRESHOLD_DEFAULT;
370 } 372 }
371 373
372 } // namespace switches 374 } // namespace switches
373 } // namespace chromeos 375 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/network_ui/network_ui.css ('k') | chromeos/dbus/fake_shill_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698