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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 11348275: Remove the flag for the Speech API and turn it on by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 654
655 WebRuntimeFeatures::enableDeviceMotion( 655 WebRuntimeFeatures::enableDeviceMotion(
656 command_line.HasSwitch(switches::kEnableDeviceMotion)); 656 command_line.HasSwitch(switches::kEnableDeviceMotion));
657 657
658 WebRuntimeFeatures::enableDeviceOrientation( 658 WebRuntimeFeatures::enableDeviceOrientation(
659 !command_line.HasSwitch(switches::kDisableDeviceOrientation)); 659 !command_line.HasSwitch(switches::kDisableDeviceOrientation));
660 660
661 WebRuntimeFeatures::enableSpeechInput( 661 WebRuntimeFeatures::enableSpeechInput(
662 !command_line.HasSwitch(switches::kDisableSpeechInput)); 662 !command_line.HasSwitch(switches::kDisableSpeechInput));
663 663
664 WebRuntimeFeatures::enableScriptedSpeech( 664 WebRuntimeFeatures::enableScriptedSpeech(true);
665 command_line.HasSwitch(switches::kEnableScriptedSpeech));
666 665
667 WebRuntimeFeatures::enableFileSystem( 666 WebRuntimeFeatures::enableFileSystem(
668 !command_line.HasSwitch(switches::kDisableFileSystem)); 667 !command_line.HasSwitch(switches::kDisableFileSystem));
669 668
670 WebRuntimeFeatures::enableJavaScriptI18NAPI( 669 WebRuntimeFeatures::enableJavaScriptI18NAPI(
671 !command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI)); 670 !command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI));
672 671
673 WebRuntimeFeatures::enableGamepad(true); 672 WebRuntimeFeatures::enableGamepad(true);
674 673
675 WebRuntimeFeatures::enableQuota(true); 674 WebRuntimeFeatures::enableQuota(true);
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 RenderThreadImpl::GetFileThreadMessageLoopProxy() { 1107 RenderThreadImpl::GetFileThreadMessageLoopProxy() {
1109 DCHECK(message_loop() == MessageLoop::current()); 1108 DCHECK(message_loop() == MessageLoop::current());
1110 if (!file_thread_.get()) { 1109 if (!file_thread_.get()) {
1111 file_thread_.reset(new base::Thread("Renderer::FILE")); 1110 file_thread_.reset(new base::Thread("Renderer::FILE"));
1112 file_thread_->Start(); 1111 file_thread_->Start();
1113 } 1112 }
1114 return file_thread_->message_loop_proxy(); 1113 return file_thread_->message_loop_proxy();
1115 } 1114 }
1116 1115
1117 } // namespace content 1116 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698