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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 | 564 |
565 WebRuntimeFeatures::enableScriptedSpeech( | 565 WebRuntimeFeatures::enableScriptedSpeech( |
566 command_line.HasSwitch(switches::kEnableScriptedSpeech)); | 566 command_line.HasSwitch(switches::kEnableScriptedSpeech)); |
567 | 567 |
568 WebRuntimeFeatures::enableFileSystem( | 568 WebRuntimeFeatures::enableFileSystem( |
569 !command_line.HasSwitch(switches::kDisableFileSystem)); | 569 !command_line.HasSwitch(switches::kDisableFileSystem)); |
570 | 570 |
571 WebRuntimeFeatures::enableJavaScriptI18NAPI( | 571 WebRuntimeFeatures::enableJavaScriptI18NAPI( |
572 !command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI)); | 572 !command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI)); |
573 | 573 |
574 WebRuntimeFeatures::enableGamepad(true); | 574 WebRuntimeFeatures::enableGamepad( |
| 575 command_line.HasSwitch(switches::kEnableGamepad)); |
575 | 576 |
576 WebRuntimeFeatures::enableQuota(true); | 577 WebRuntimeFeatures::enableQuota(true); |
577 | 578 |
578 WebRuntimeFeatures::enableShadowDOM( | 579 WebRuntimeFeatures::enableShadowDOM( |
579 command_line.HasSwitch(switches::kEnableShadowDOM)); | 580 command_line.HasSwitch(switches::kEnableShadowDOM)); |
580 | 581 |
581 WebRuntimeFeatures::enableStyleScoped( | 582 WebRuntimeFeatures::enableStyleScoped( |
582 command_line.HasSwitch(switches::kEnableStyleScoped)); | 583 command_line.HasSwitch(switches::kEnableStyleScoped)); |
583 | 584 |
584 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); | 585 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 | 967 |
967 scoped_refptr<base::MessageLoopProxy> | 968 scoped_refptr<base::MessageLoopProxy> |
968 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 969 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
969 DCHECK(message_loop() == MessageLoop::current()); | 970 DCHECK(message_loop() == MessageLoop::current()); |
970 if (!file_thread_.get()) { | 971 if (!file_thread_.get()) { |
971 file_thread_.reset(new base::Thread("Renderer::FILE")); | 972 file_thread_.reset(new base::Thread("Renderer::FILE")); |
972 file_thread_->Start(); | 973 file_thread_->Start(); |
973 } | 974 } |
974 return file_thread_->message_loop_proxy(); | 975 return file_thread_->message_loop_proxy(); |
975 } | 976 } |
OLD | NEW |