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

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

Issue 586053003: Remove PagePopup runtime flag (status=stable) for chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix for commit Created 6 years, 2 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 | « no previous file | no next file » | 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 "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 24 matching lines...) Expand all
35 // WebAudio is enabled by default but only when the MediaCodec API 35 // WebAudio is enabled by default but only when the MediaCodec API
36 // is available. 36 // is available.
37 AndroidCpuFamily cpu_family = android_getCpuFamily(); 37 AndroidCpuFamily cpu_family = android_getCpuFamily();
38 WebRuntimeFeatures::enableWebAudio( 38 WebRuntimeFeatures::enableWebAudio(
39 media::MediaCodecBridge::IsAvailable() && 39 media::MediaCodecBridge::IsAvailable() &&
40 ((cpu_family == ANDROID_CPU_FAMILY_ARM) || 40 ((cpu_family == ANDROID_CPU_FAMILY_ARM) ||
41 (cpu_family == ANDROID_CPU_FAMILY_ARM64) || 41 (cpu_family == ANDROID_CPU_FAMILY_ARM64) ||
42 (cpu_family == ANDROID_CPU_FAMILY_X86) || 42 (cpu_family == ANDROID_CPU_FAMILY_X86) ||
43 (cpu_family == ANDROID_CPU_FAMILY_MIPS))); 43 (cpu_family == ANDROID_CPU_FAMILY_MIPS)));
44 44
45 // Android does not have support for PagePopup
46 WebRuntimeFeatures::enablePagePopup(false);
47 // Android does not yet support the Web Notification API. crbug.com/115320 45 // Android does not yet support the Web Notification API. crbug.com/115320
48 WebRuntimeFeatures::enableNotifications(false); 46 WebRuntimeFeatures::enableNotifications(false);
49 // Android does not yet support SharedWorker. crbug.com/154571 47 // Android does not yet support SharedWorker. crbug.com/154571
50 WebRuntimeFeatures::enableSharedWorker(false); 48 WebRuntimeFeatures::enableSharedWorker(false);
51 // Android does not yet support NavigatorContentUtils. 49 // Android does not yet support NavigatorContentUtils.
52 WebRuntimeFeatures::enableNavigatorContentUtils(false); 50 WebRuntimeFeatures::enableNavigatorContentUtils(false);
53 WebRuntimeFeatures::enableTouchIconLoading(true); 51 WebRuntimeFeatures::enableTouchIconLoading(true);
54 WebRuntimeFeatures::enableOrientationEvent(true); 52 WebRuntimeFeatures::enableOrientationEvent(true);
55 WebRuntimeFeatures::enableFastMobileScrolling(true); 53 WebRuntimeFeatures::enableFastMobileScrolling(true);
56 WebRuntimeFeatures::enableMediaCapture(true); 54 WebRuntimeFeatures::enableMediaCapture(true);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 command_line.HasSwitch( 178 command_line.HasSwitch(
181 switches::kEnableExperimentalWebPlatformFeatures)) { 179 switches::kEnableExperimentalWebPlatformFeatures)) {
182 WebRuntimeFeatures::enableNetworkInformation(true); 180 WebRuntimeFeatures::enableNetworkInformation(true);
183 } 181 }
184 182
185 if (command_line.HasSwitch(switches::kEnableCredentialManagerAPI)) 183 if (command_line.HasSwitch(switches::kEnableCredentialManagerAPI))
186 WebRuntimeFeatures::enableCredentialManagerAPI(true); 184 WebRuntimeFeatures::enableCredentialManagerAPI(true);
187 } 185 }
188 186
189 } // namespace content 187 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698