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

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

Issue 2642793003: [wasm] Change WebAssembly flags option to only cover structured cloning. (Closed)
Patch Set: fix Created 3 years, 11 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/renderer/render_process_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 if (command_line.HasSwitch(switches::kDisableNotifications)) { 93 if (command_line.HasSwitch(switches::kDisableNotifications)) {
94 WebRuntimeFeatures::enableNotifications(false); 94 WebRuntimeFeatures::enableNotifications(false);
95 95
96 // Chrome's Push Messaging implementation relies on Web Notifications. 96 // Chrome's Push Messaging implementation relies on Web Notifications.
97 WebRuntimeFeatures::enablePushMessaging(false); 97 WebRuntimeFeatures::enablePushMessaging(false);
98 } 98 }
99 99
100 if (!base::FeatureList::IsEnabled(features::kNotificationContentImage)) 100 if (!base::FeatureList::IsEnabled(features::kNotificationContentImage))
101 WebRuntimeFeatures::enableNotificationContentImage(false); 101 WebRuntimeFeatures::enableNotificationContentImage(false);
102 102
103 // For the time being, enable wasm serialization when wasm is enabled, 103 // For the time being, wasm serialization is separately controlled
104 // since the whole wasm space is experimental. We have the flexibility 104 // by this flag. WebAssembly APIs and compilation is now enabled
105 // to decouple the two. 105 // unconditionally in V8.
106 if (base::FeatureList::IsEnabled(features::kWebAssembly)) 106 if (base::FeatureList::IsEnabled(features::kWebAssembly))
107 WebRuntimeFeatures::enableWebAssemblySerialization(true); 107 WebRuntimeFeatures::enableWebAssemblySerialization(true);
108 108
109 WebRuntimeFeatures::enableSharedArrayBuffer( 109 WebRuntimeFeatures::enableSharedArrayBuffer(
110 base::FeatureList::IsEnabled(features::kSharedArrayBuffer)); 110 base::FeatureList::IsEnabled(features::kSharedArrayBuffer));
111 111
112 if (command_line.HasSwitch(switches::kDisableSharedWorkers)) 112 if (command_line.HasSwitch(switches::kDisableSharedWorkers))
113 WebRuntimeFeatures::enableSharedWorker(false); 113 WebRuntimeFeatures::enableSharedWorker(false);
114 114
115 if (command_line.HasSwitch(switches::kDisableSpeechAPI)) 115 if (command_line.HasSwitch(switches::kDisableSpeechAPI))
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 368 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
369 std::vector<std::string> disabled_features = base::SplitString( 369 std::vector<std::string> disabled_features = base::SplitString(
370 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 370 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
371 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 371 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
372 for (const std::string& feature : disabled_features) 372 for (const std::string& feature : disabled_features)
373 WebRuntimeFeatures::enableFeatureFromString(feature, false); 373 WebRuntimeFeatures::enableFeatureFromString(feature, false);
374 } 374 }
375 } 375 }
376 376
377 } // namespace content 377 } // namespace content
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/renderer/render_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698