Skip to content

Commit

Permalink
Disable Threaded HTML Parsing for Android
Browse files Browse the repository at this point in the history
BUG=230542
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/14159004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193731 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
dtrainor@chromium.org committed Apr 11, 2013
1 parent 91a1d29 commit dab5ad3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions content/browser/web_contents/web_contents_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,16 @@ WebPreferences WebContentsImpl::GetWebkitPrefs(RenderViewHost* rvh,
command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
prefs.css_grid_layout_enabled =
command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);

// TODO(abarth, eseidel): Enable threaded_html_parser by default on Android
// once crbug 230542 is resolved.
#if defined(OS_ANDROID)
prefs.threaded_html_parser = false;
#else
prefs.threaded_html_parser =
!command_line.HasSwitch(switches::kDisableThreadedHTMLParser);
#endif

#if defined(OS_ANDROID)
prefs.user_gesture_required_for_media_playback = !command_line.HasSwitch(
switches::kDisableGestureRequirementForMediaPlayback);
Expand Down

0 comments on commit dab5ad3

Please sign in to comment.