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

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

Issue 169173003: content: Do not call empty methods of WebScriptController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 scoped_refptr<base::MessageLoopProxy> output_surface_loop; 697 scoped_refptr<base::MessageLoopProxy> output_surface_loop;
698 if (enable) 698 if (enable)
699 output_surface_loop = compositor_message_loop_proxy_; 699 output_surface_loop = compositor_message_loop_proxy_;
700 else 700 else
701 output_surface_loop = base::MessageLoopProxy::current(); 701 output_surface_loop = base::MessageLoopProxy::current();
702 702
703 compositor_output_surface_filter_ = 703 compositor_output_surface_filter_ =
704 CompositorOutputSurface::CreateFilter(output_surface_loop.get()); 704 CompositorOutputSurface::CreateFilter(output_surface_loop.get());
705 AddFilter(compositor_output_surface_filter_.get()); 705 AddFilter(compositor_output_surface_filter_.get());
706 706
707 WebScriptController::enableV8SingleThreadMode();
708
709 RenderThreadImpl::RegisterSchemes(); 707 RenderThreadImpl::RegisterSchemes();
710 708
711 EnableBlinkPlatformLogChannels( 709 EnableBlinkPlatformLogChannels(
712 command_line.GetSwitchValueASCII(switches::kBlinkPlatformLogChannels)); 710 command_line.GetSwitchValueASCII(switches::kBlinkPlatformLogChannels));
713 711
714 SetRuntimeFeaturesDefaultsAndUpdateFromArgs(command_line); 712 SetRuntimeFeaturesDefaultsAndUpdateFromArgs(command_line);
715 713
716 if (!media::IsMediaLibraryInitialized()) { 714 if (!media::IsMediaLibraryInitialized()) {
717 WebRuntimeFeatures::enableMediaPlayer(false); 715 WebRuntimeFeatures::enableMediaPlayer(false);
718 WebRuntimeFeatures::enableWebAudio(false); 716 WebRuntimeFeatures::enableWebAudio(false);
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 hidden_widget_count_--; 1418 hidden_widget_count_--;
1421 1419
1422 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1420 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1423 return; 1421 return;
1424 } 1422 }
1425 1423
1426 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1424 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1427 } 1425 }
1428 1426
1429 } // namespace content 1427 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/shell/renderer/test_runner/WebTestProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698