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

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 1025663002: Implement oauth token external handler checking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 const char kArtifactsDir[] = "artifacts-dir"; 322 const char kArtifactsDir[] = "artifacts-dir";
323 323
324 // Bypass proxy for captive portal authorization. 324 // Bypass proxy for captive portal authorization.
325 const char kEnableCaptivePortalBypassProxyOption[] = 325 const char kEnableCaptivePortalBypassProxyOption[] =
326 "enable-captive-portal-bypass-proxy-option"; 326 "enable-captive-portal-bypass-proxy-option";
327 327
328 // Disable automatic timezone update. 328 // Disable automatic timezone update.
329 const char kDisableTimeZoneTrackingOption[] = 329 const char kDisableTimeZoneTrackingOption[] =
330 "disable-timezone-tracking-option"; 330 "disable-timezone-tracking-option";
331 331
332 // Enable OAuth token validation on sign in screen.
333 const char kEnableOAuthTokenHandlers[] = "enable-oauth-token-handlers";
334
332 bool WakeOnWifiEnabled() { 335 bool WakeOnWifiEnabled() {
333 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); 336 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi);
334 } 337 }
335 338
336 bool MemoryPressureHandlingEnabled() { 339 bool MemoryPressureHandlingEnabled() {
337 if ((base::CommandLine::ForCurrentProcess()->HasSwitch( 340 if ((base::CommandLine::ForCurrentProcess()->HasSwitch(
338 chromeos::switches::kDisableMemoryPressureSystemChromeOS)) || 341 chromeos::switches::kDisableMemoryPressureSystemChromeOS)) ||
339 (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == 342 (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) ==
340 kMemoryPressureHandlingOff)) 343 kMemoryPressureHandlingOff))
341 return false; 344 return false;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 return base::MemoryPressureObserverChromeOS:: 376 return base::MemoryPressureObserverChromeOS::
374 THRESHOLD_AGGRESSIVE_TAB_DISCARD; 377 THRESHOLD_AGGRESSIVE_TAB_DISCARD;
375 if (option == kAggressiveThreshold) 378 if (option == kAggressiveThreshold)
376 return base::MemoryPressureObserverChromeOS::THRESHOLD_AGGRESSIVE; 379 return base::MemoryPressureObserverChromeOS::THRESHOLD_AGGRESSIVE;
377 380
378 return base::MemoryPressureObserverChromeOS::THRESHOLD_DEFAULT; 381 return base::MemoryPressureObserverChromeOS::THRESHOLD_DEFAULT;
379 } 382 }
380 383
381 } // namespace switches 384 } // namespace switches
382 } // namespace chromeos 385 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698