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

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

Issue 10386191: Revert 137239 - Revert 134823 - Enable gamepad API by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 months 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 | « no previous file | 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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698