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

Side by Side Diff: third_party/WebKit/Source/core/experiments/testing/InternalsFrobulate.cpp

Issue 1635593004: Rename Experimental Framework classes and concepts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698