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

Side by Side Diff: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp

Issue 1876473002: Add a feature flag for enabling subscription restrictions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 void WebRuntimeFeatures::enableReducedReferrerGranularity(bool enable) 263 void WebRuntimeFeatures::enableReducedReferrerGranularity(bool enable)
264 { 264 {
265 RuntimeEnabledFeatures::setReducedReferrerGranularityEnabled(enable); 265 RuntimeEnabledFeatures::setReducedReferrerGranularityEnabled(enable);
266 } 266 }
267 267
268 void WebRuntimeFeatures::enablePushMessaging(bool enable) 268 void WebRuntimeFeatures::enablePushMessaging(bool enable)
269 { 269 {
270 RuntimeEnabledFeatures::setPushMessagingEnabled(enable); 270 RuntimeEnabledFeatures::setPushMessagingEnabled(enable);
271 } 271 }
272 272
273 void WebRuntimeFeatures::enablePushSubscriptionRestrictions(bool enable)
274 {
275 RuntimeEnabledFeatures::setPushSubscriptionRestrictionsEnabled(enable);
276 }
277
273 void WebRuntimeFeatures::enableUnsafeES3APIs(bool enable) 278 void WebRuntimeFeatures::enableUnsafeES3APIs(bool enable)
274 { 279 {
275 RuntimeEnabledFeatures::setUnsafeES3APIsEnabled(enable); 280 RuntimeEnabledFeatures::setUnsafeES3APIsEnabled(enable);
276 } 281 }
277 282
278 void WebRuntimeFeatures::enableWebVR(bool enable) 283 void WebRuntimeFeatures::enableWebVR(bool enable)
279 { 284 {
280 RuntimeEnabledFeatures::setWebVREnabled(enable); 285 RuntimeEnabledFeatures::setWebVREnabled(enable);
281 } 286 }
282 287
(...skipping 26 matching lines...) Expand all
309 { 314 {
310 RuntimeEnabledFeatures::setRenderingPipelineThrottlingEnabled(enable); 315 RuntimeEnabledFeatures::setRenderingPipelineThrottlingEnabled(enable);
311 } 316 }
312 317
313 bool WebRuntimeFeatures::isServiceWorkerExtendableMessageEventEnabled() 318 bool WebRuntimeFeatures::isServiceWorkerExtendableMessageEventEnabled()
314 { 319 {
315 return RuntimeEnabledFeatures::serviceWorkerExtendableMessageEventEnabled(); 320 return RuntimeEnabledFeatures::serviceWorkerExtendableMessageEventEnabled();
316 } 321 }
317 322
318 } // namespace blink 323 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698