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

Side by Side Diff: content/child/runtime_features.cc

Issue 2844453002: Update CM API IDL to use SecureContext (Closed)
Patch Set: Rebase Created 3 years, 7 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 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 <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 WebRuntimeFeatures::EnablePreciseMemoryInfo(true); 187 WebRuntimeFeatures::EnablePreciseMemoryInfo(true);
188 188
189 if (command_line.HasSwitch(switches::kEnablePrintBrowser)) 189 if (command_line.HasSwitch(switches::kEnablePrintBrowser))
190 WebRuntimeFeatures::EnablePrintBrowser(true); 190 WebRuntimeFeatures::EnablePrintBrowser(true);
191 191
192 if (command_line.HasSwitch(switches::kEnableNetworkInformation) || 192 if (command_line.HasSwitch(switches::kEnableNetworkInformation) ||
193 enableExperimentalWebPlatformFeatures) { 193 enableExperimentalWebPlatformFeatures) {
194 WebRuntimeFeatures::EnableNetworkInformation(true); 194 WebRuntimeFeatures::EnableNetworkInformation(true);
195 } 195 }
196 196
197 if (!base::FeatureList::IsEnabled(features::kCredentialManagementAPI))
198 WebRuntimeFeatures::EnableCredentialManagerAPI(false);
199
200 if (command_line.HasSwitch(switches::kReducedReferrerGranularity)) 197 if (command_line.HasSwitch(switches::kReducedReferrerGranularity))
201 WebRuntimeFeatures::EnableReducedReferrerGranularity(true); 198 WebRuntimeFeatures::EnableReducedReferrerGranularity(true);
202 199
203 if (command_line.HasSwitch(switches::kRootLayerScrolls)) 200 if (command_line.HasSwitch(switches::kRootLayerScrolls))
204 WebRuntimeFeatures::EnableRootLayerScrolling(true); 201 WebRuntimeFeatures::EnableRootLayerScrolling(true);
205 202
206 if (command_line.HasSwitch(switches::kDisablePermissionsAPI)) 203 if (command_line.HasSwitch(switches::kDisablePermissionsAPI))
207 WebRuntimeFeatures::EnablePermissionsAPI(false); 204 WebRuntimeFeatures::EnablePermissionsAPI(false);
208 205
209 if (command_line.HasSwitch(switches::kDisableV8IdleTasks)) 206 if (command_line.HasSwitch(switches::kDisableV8IdleTasks))
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 399 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
403 std::vector<std::string> disabled_features = base::SplitString( 400 std::vector<std::string> disabled_features = base::SplitString(
404 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 401 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
405 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 402 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
406 for (const std::string& feature : disabled_features) 403 for (const std::string& feature : disabled_features)
407 WebRuntimeFeatures::EnableFeatureFromString(feature, false); 404 WebRuntimeFeatures::EnableFeatureFromString(feature, false);
408 } 405 }
409 } 406 }
410 407
411 } // namespace content 408 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698