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

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

Issue 10310173: 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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
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