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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp

Issue 2274303002: Enable the WebUSB Origin Trial. (Closed)
Patch Set: Revert update to global-interface-listing-expected.txt. Created 4 years, 3 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) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 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 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 840
841 // Mark each enabled feature as having been installed. 841 // Mark each enabled feature as having been installed.
842 if (!originTrialContext->featureBindingsInstalled("DurableStorage") && (Runt imeEnabledFeatures::durableStorageEnabled() || originTrialContext->isFeatureEnab led("DurableStorage"))) { 842 if (!originTrialContext->featureBindingsInstalled("DurableStorage") && (Runt imeEnabledFeatures::durableStorageEnabled() || originTrialContext->isFeatureEnab led("DurableStorage"))) {
843 originTrialContext->setFeatureBindingsInstalled("DurableStorage"); 843 originTrialContext->setFeatureBindingsInstalled("DurableStorage");
844 } 844 }
845 845
846 if (!originTrialContext->featureBindingsInstalled("WebBluetooth") && (Runtim eEnabledFeatures::webBluetoothEnabled() || originTrialContext->isFeatureEnabled( "WebBluetooth"))) { 846 if (!originTrialContext->featureBindingsInstalled("WebBluetooth") && (Runtim eEnabledFeatures::webBluetoothEnabled() || originTrialContext->isFeatureEnabled( "WebBluetooth"))) {
847 originTrialContext->setFeatureBindingsInstalled("WebBluetooth"); 847 originTrialContext->setFeatureBindingsInstalled("WebBluetooth");
848 } 848 }
849 849
850 if (!originTrialContext->featureBindingsInstalled("WebUSB") && (RuntimeEnabl edFeatures::webUSBEnabled() || originTrialContext->isFeatureEnabled("WebUSB"))) {
851 originTrialContext->setFeatureBindingsInstalled("WebUSB");
852 }
853
850 if (!originTrialContext->featureBindingsInstalled("LinkServiceWorker") && (R untimeEnabledFeatures::linkServiceWorkerEnabled() || originTrialContext->isFeatu reEnabled("ForeignFetch"))) { 854 if (!originTrialContext->featureBindingsInstalled("LinkServiceWorker") && (R untimeEnabledFeatures::linkServiceWorkerEnabled() || originTrialContext->isFeatu reEnabled("ForeignFetch"))) {
851 originTrialContext->setFeatureBindingsInstalled("LinkServiceWorker"); 855 originTrialContext->setFeatureBindingsInstalled("LinkServiceWorker");
852 } 856 }
853 857
854 if (!originTrialContext->featureBindingsInstalled("ForeignFetch") && (Runtim eEnabledFeatures::foreignFetchEnabled() || originTrialContext->isFeatureEnabled( "ForeignFetch"))) { 858 if (!originTrialContext->featureBindingsInstalled("ForeignFetch") && (Runtim eEnabledFeatures::foreignFetchEnabled() || originTrialContext->isFeatureEnabled( "ForeignFetch"))) {
855 originTrialContext->setFeatureBindingsInstalled("ForeignFetch"); 859 originTrialContext->setFeatureBindingsInstalled("ForeignFetch");
856 } 860 }
857 } 861 }
858 862
859 InstallOriginTrialsFunction setInstallOriginTrialsFunction(InstallOriginTrialsFu nction newInstallOriginTrialsFunction) 863 InstallOriginTrialsFunction setInstallOriginTrialsFunction(InstallOriginTrialsFu nction newInstallOriginTrialsFunction)
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 return frame->script().isolate(); 959 return frame->script().isolate();
956 } 960 }
957 961
958 v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value> value, v8::Isolate* iso late) 962 v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value> value, v8::Isolate* iso late)
959 { 963 {
960 value.As<v8::Object>()->SetIntegrityLevel(isolate->GetCurrentContext(), v8:: IntegrityLevel::kFrozen).ToChecked(); 964 value.As<v8::Object>()->SetIntegrityLevel(isolate->GetCurrentContext(), v8:: IntegrityLevel::kFrozen).ToChecked();
961 return value; 965 return value;
962 } 966 }
963 967
964 } // namespace blink 968 } // namespace blink
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698