| 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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 | 561 |
| 562 WebRuntimeFeatures::enableScriptedSpeech( | 562 WebRuntimeFeatures::enableScriptedSpeech( |
| 563 command_line.HasSwitch(switches::kEnableScriptedSpeech)); | 563 command_line.HasSwitch(switches::kEnableScriptedSpeech)); |
| 564 | 564 |
| 565 WebRuntimeFeatures::enableFileSystem( | 565 WebRuntimeFeatures::enableFileSystem( |
| 566 !command_line.HasSwitch(switches::kDisableFileSystem)); | 566 !command_line.HasSwitch(switches::kDisableFileSystem)); |
| 567 | 567 |
| 568 WebRuntimeFeatures::enableJavaScriptI18NAPI( | 568 WebRuntimeFeatures::enableJavaScriptI18NAPI( |
| 569 !command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI)); | 569 !command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI)); |
| 570 | 570 |
| 571 WebRuntimeFeatures::enableGamepad( | 571 WebRuntimeFeatures::enableGamepad(true); |
| 572 command_line.HasSwitch(switches::kEnableGamepad)); | |
| 573 | 572 |
| 574 WebRuntimeFeatures::enableQuota(true); | 573 WebRuntimeFeatures::enableQuota(true); |
| 575 | 574 |
| 576 WebRuntimeFeatures::enableShadowDOM( | 575 WebRuntimeFeatures::enableShadowDOM( |
| 577 command_line.HasSwitch(switches::kEnableShadowDOM)); | 576 command_line.HasSwitch(switches::kEnableShadowDOM)); |
| 578 | 577 |
| 579 WebRuntimeFeatures::enableStyleScoped( | 578 WebRuntimeFeatures::enableStyleScoped( |
| 580 command_line.HasSwitch(switches::kEnableStyleScoped)); | 579 command_line.HasSwitch(switches::kEnableStyleScoped)); |
| 581 | 580 |
| 582 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); | 581 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 999 | 998 |
| 1000 scoped_refptr<base::MessageLoopProxy> | 999 scoped_refptr<base::MessageLoopProxy> |
| 1001 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1000 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
| 1002 DCHECK(message_loop() == MessageLoop::current()); | 1001 DCHECK(message_loop() == MessageLoop::current()); |
| 1003 if (!file_thread_.get()) { | 1002 if (!file_thread_.get()) { |
| 1004 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1003 file_thread_.reset(new base::Thread("Renderer::FILE")); |
| 1005 file_thread_->Start(); | 1004 file_thread_->Start(); |
| 1006 } | 1005 } |
| 1007 return file_thread_->message_loop_proxy(); | 1006 return file_thread_->message_loop_proxy(); |
| 1008 } | 1007 } |
| OLD | NEW |