| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "core/experiments/testing/InternalsFrobulate.h" | |
| 6 | |
| 7 #include "bindings/core/v8/ExceptionState.h" | |
| 8 #include "core/dom/ExceptionCode.h" | |
| 9 #include "core/experiments/ExperimentalFeatures.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 // static | |
| 14 bool InternalsFrobulate::frobulate(ScriptState* scriptState, Internals& internal
s, ExceptionState& exceptionState) | |
| 15 { | |
| 16 String errorMessage; | |
| 17 if (!ExperimentalFeatures::experimentalFrameworkSampleAPIEnabled(scriptState
->executionContext(), errorMessage)) { | |
| 18 exceptionState.throwDOMException(NotSupportedError, errorMessage); | |
| 19 return false; | |
| 20 } | |
| 21 return frobulateNoEnabledCheck(internals); | |
| 22 } | |
| 23 | |
| 24 // static | |
| 25 bool InternalsFrobulate::frobulateNoEnabledCheck(Internals& internals) | |
| 26 { | |
| 27 return true; | |
| 28 } | |
| 29 | |
| 30 } // namespace blink | |
| OLD | NEW |