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

Side by Side Diff: third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp

Issue 2228873002: Added an origin trial for WebShare. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 } 561 }
562 562
563 if (!originTrialContext->featureBindingsInstalled("WebBluetooth") && (Runtim eEnabledFeatures::webBluetoothEnabled() || originTrialContext->isFeatureEnabled( "WebBluetooth"))) { 563 if (!originTrialContext->featureBindingsInstalled("WebBluetooth") && (Runtim eEnabledFeatures::webBluetoothEnabled() || originTrialContext->isFeatureEnabled( "WebBluetooth"))) {
564 if (executionContext->isDocument()) { 564 if (executionContext->isDocument()) {
565 // For global interfaces e.g. BluetoothUUID. 565 // For global interfaces e.g. BluetoothUUID.
566 V8WindowPartial::installWebBluetooth(scriptState, global); 566 V8WindowPartial::installWebBluetooth(scriptState, global);
567 // For navigator interfaces e.g. navigator.bluetooth. 567 // For navigator interfaces e.g. navigator.bluetooth.
568 V8NavigatorPartial::installWebBluetooth(scriptState); 568 V8NavigatorPartial::installWebBluetooth(scriptState);
569 } 569 }
570 } 570 }
571
572 if (!originTrialContext->featureBindingsInstalled("WebShare") && (RuntimeEna bledFeatures::webShareEnabled() || originTrialContext->isFeatureEnabled("WebShar e"))) {
573 if (executionContext->isDocument()) {
574 // For navigator interfaces e.g. navigator.share.
575 V8NavigatorPartial::installWebShare(scriptState);
576 }
577 }
571 } 578 }
572 579
573 void registerInstallOriginTrialsForModules() 580 void registerInstallOriginTrialsForModules()
574 { 581 {
575 s_originalInstallOriginTrialsFunction = setInstallOriginTrialsFunction(&inst allOriginTrialsForModules); 582 s_originalInstallOriginTrialsFunction = setInstallOriginTrialsFunction(&inst allOriginTrialsForModules);
576 } 583 }
577 } // namespace blink 584 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698