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