| 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 "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 #include "build/build_config.h" |     9 #include "build/build_config.h" | 
|    10  |    10  | 
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   231  |   231  | 
|   232 // Disables Domain Reliability Monitoring. |   232 // Disables Domain Reliability Monitoring. | 
|   233 const char kDisableDomainReliability[]      = "disable-domain-reliability"; |   233 const char kDisableDomainReliability[]      = "disable-domain-reliability"; | 
|   234  |   234  | 
|   235 // Disable download notification. |   235 // Disable download notification. | 
|   236 const char kDisableDownloadNotification[] = "disable-download-notification"; |   236 const char kDisableDownloadNotification[] = "disable-download-notification"; | 
|   237  |   237  | 
|   238 // Disable extensions. |   238 // Disable extensions. | 
|   239 const char kDisableExtensions[]             = "disable-extensions"; |   239 const char kDisableExtensions[]             = "disable-extensions"; | 
|   240  |   240  | 
 |   241 // Disable extensions except those specified in a comma-separated list. | 
 |   242 const char kDisableExtensionsExcept[] = "disable-extensions-except"; | 
 |   243  | 
|   241 // Disable checking for user opt-in for extensions that want to inject script |   244 // Disable checking for user opt-in for extensions that want to inject script | 
|   242 // into file URLs (ie, always allow it). This is used during automated testing. |   245 // into file URLs (ie, always allow it). This is used during automated testing. | 
|   243 const char kDisableExtensionsFileAccessCheck[] = |   246 const char kDisableExtensionsFileAccessCheck[] = | 
|   244     "disable-extensions-file-access-check"; |   247     "disable-extensions-file-access-check"; | 
|   245  |   248  | 
|   246 // Disable the net::URLRequestThrottlerManager functionality for |   249 // Disable the net::URLRequestThrottlerManager functionality for | 
|   247 // requests originating from extensions. |   250 // requests originating from extensions. | 
|   248 const char kDisableExtensionsHttpThrottling[] = |   251 const char kDisableExtensionsHttpThrottling[] = | 
|   249     "disable-extensions-http-throttling"; |   252     "disable-extensions-http-throttling"; | 
|   250  |   253  | 
| (...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1293 extern const char kDisableInputImeAPI[] = "disable-input-ime-api"; |  1296 extern const char kDisableInputImeAPI[] = "disable-input-ime-api"; | 
|  1294 extern const char kEnableInputImeAPI[] = "enable-input-ime-api"; |  1297 extern const char kEnableInputImeAPI[] = "enable-input-ime-api"; | 
|  1295 #endif |  1298 #endif | 
|  1296  |  1299  | 
|  1297 bool AboutInSettingsEnabled() { |  1300 bool AboutInSettingsEnabled() { | 
|  1298   return SettingsWindowEnabled() && |  1301   return SettingsWindowEnabled() && | 
|  1299          !base::CommandLine::ForCurrentProcess()->HasSwitch( |  1302          !base::CommandLine::ForCurrentProcess()->HasSwitch( | 
|  1300              ::switches::kDisableAboutInSettings); |  1303              ::switches::kDisableAboutInSettings); | 
|  1301 } |  1304 } | 
|  1302  |  1305  | 
 |  1306 bool ExtensionsDisabled() { | 
 |  1307   return base::CommandLine::ForCurrentProcess()->HasSwitch( | 
 |  1308              ::switches::kDisableExtensions) || | 
 |  1309          base::CommandLine::ForCurrentProcess()->HasSwitch( | 
 |  1310              ::switches::kDisableExtensionsExcept); | 
 |  1311 } | 
 |  1312  | 
|  1303 bool MdExtensionsEnabled() { |  1313 bool MdExtensionsEnabled() { | 
|  1304   return base::CommandLine::ForCurrentProcess()->HasSwitch( |  1314   return base::CommandLine::ForCurrentProcess()->HasSwitch( | 
|  1305       ::switches::kEnableMaterialDesignExtensions); |  1315       ::switches::kEnableMaterialDesignExtensions); | 
|  1306 } |  1316 } | 
|  1307  |  1317  | 
|  1308 bool MdFeedbackEnabled() { |  1318 bool MdFeedbackEnabled() { | 
|  1309   return base::CommandLine::ForCurrentProcess()->HasSwitch( |  1319   return base::CommandLine::ForCurrentProcess()->HasSwitch( | 
|  1310       ::switches::kEnableMaterialDesignFeedback); |  1320       ::switches::kEnableMaterialDesignFeedback); | 
|  1311 } |  1321 } | 
|  1312  |  1322  | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
|  1334  |  1344  | 
|  1335 // ----------------------------------------------------------------------------- |  1345 // ----------------------------------------------------------------------------- | 
|  1336 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |  1346 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 
|  1337 // |  1347 // | 
|  1338 // You were going to just dump your switches here, weren't you? Instead, please |  1348 // You were going to just dump your switches here, weren't you? Instead, please | 
|  1339 // put them in alphabetical order above, or in order inside the appropriate |  1349 // put them in alphabetical order above, or in order inside the appropriate | 
|  1340 // ifdef at the bottom. The order should match the header. |  1350 // ifdef at the bottom. The order should match the header. | 
|  1341 // ----------------------------------------------------------------------------- |  1351 // ----------------------------------------------------------------------------- | 
|  1342  |  1352  | 
|  1343 }  // namespace switches |  1353 }  // namespace switches | 
| OLD | NEW |