OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/child/runtime_features.h" | 5 #include "content/child/runtime_features.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 #include "content/common/content_switches_internal.h" | 9 #include "content/common/content_switches_internal.h" |
10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 if (command_line.HasSwitch(switches::kDisableDatabases)) | 89 if (command_line.HasSwitch(switches::kDisableDatabases)) |
90 WebRuntimeFeatures::enableDatabase(false); | 90 WebRuntimeFeatures::enableDatabase(false); |
91 | 91 |
92 if (command_line.HasSwitch(switches::kDisableApplicationCache)) | 92 if (command_line.HasSwitch(switches::kDisableApplicationCache)) |
93 WebRuntimeFeatures::enableApplicationCache(false); | 93 WebRuntimeFeatures::enableApplicationCache(false); |
94 | 94 |
95 if (command_line.HasSwitch(switches::kDisableBlinkScheduler)) | 95 if (command_line.HasSwitch(switches::kDisableBlinkScheduler)) |
96 WebRuntimeFeatures::enableBlinkScheduler(false); | 96 WebRuntimeFeatures::enableBlinkScheduler(false); |
97 | 97 |
98 if (command_line.HasSwitch(switches::kDisableDesktopNotifications)) | |
99 WebRuntimeFeatures::enableNotifications(false); | |
100 | |
101 if (command_line.HasSwitch(switches::kDisableLocalStorage)) | 98 if (command_line.HasSwitch(switches::kDisableLocalStorage)) |
102 WebRuntimeFeatures::enableLocalStorage(false); | 99 WebRuntimeFeatures::enableLocalStorage(false); |
103 | 100 |
104 if (command_line.HasSwitch(switches::kDisableSessionStorage)) | 101 if (command_line.HasSwitch(switches::kDisableSessionStorage)) |
105 WebRuntimeFeatures::enableSessionStorage(false); | 102 WebRuntimeFeatures::enableSessionStorage(false); |
106 | 103 |
107 if (command_line.HasSwitch(switches::kDisableMediaSource)) | 104 if (command_line.HasSwitch(switches::kDisableMediaSource)) |
108 WebRuntimeFeatures::enableMediaSource(false); | 105 WebRuntimeFeatures::enableMediaSource(false); |
109 | 106 |
110 if (command_line.HasSwitch(switches::kDisableSharedWorkers)) | 107 if (command_line.HasSwitch(switches::kDisableSharedWorkers)) |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 command_line.HasSwitch( | 177 command_line.HasSwitch( |
181 switches::kEnableExperimentalWebPlatformFeatures)) { | 178 switches::kEnableExperimentalWebPlatformFeatures)) { |
182 WebRuntimeFeatures::enableNetworkInformation(true); | 179 WebRuntimeFeatures::enableNetworkInformation(true); |
183 } | 180 } |
184 | 181 |
185 if (command_line.HasSwitch(switches::kEnableCredentialManagerAPI)) | 182 if (command_line.HasSwitch(switches::kEnableCredentialManagerAPI)) |
186 WebRuntimeFeatures::enableCredentialManagerAPI(true); | 183 WebRuntimeFeatures::enableCredentialManagerAPI(true); |
187 } | 184 } |
188 | 185 |
189 } // namespace content | 186 } // namespace content |
OLD | NEW |