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

Unified Diff: Source/core/testing/Internals.cpp

Issue 14466008: Switch speech synthesis from compile-flag to runtime-flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase, switch to RuntimeEnabledFeatures.in Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/modules/speech/DOMWindowSpeechSynthesis.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index ee84fbfc31be8ffef88fe548329f7aeb731d54f6..51e4016f94299e0ec9f5f65df16bc4fe8f99d005 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -127,11 +127,9 @@
#include "core/page/CaptionUserPreferences.h"
#include "core/page/PageGroup.h"
-#if ENABLE(SPEECH_SYNTHESIS)
#include "core/platform/mock/PlatformSpeechSynthesizerMock.h"
#include "modules/speech/DOMWindowSpeechSynthesis.h"
#include "modules/speech/SpeechSynthesis.h"
-#endif
namespace WebCore {
@@ -795,7 +793,6 @@ void Internals::setFormControlStateOfPreviousHistoryItem(const Vector<String>& s
ec = INVALID_ACCESS_ERR;
}
-#if ENABLE(SPEECH_SYNTHESIS)
void Internals::enableMockSpeechSynthesizer()
{
Document* document = contextDocument();
@@ -807,7 +804,6 @@ void Internals::enableMockSpeechSynthesizer()
synthesis->setPlatformSynthesizer(PlatformSpeechSynthesizerMock::create(synthesis));
}
-#endif
void Internals::setEnableMockPagePopup(bool enabled, ExceptionCode& ec)
{
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/modules/speech/DOMWindowSpeechSynthesis.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698