OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |