| Index: chrome/browser/tab_contents/render_view_host_delegate_helper.cc
|
| diff --git a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
|
| index 4958bc89a5d8c970bcea7bd231ffac15654843e8..d82f08bee98a2301c2d83f0b7c932f5a15d60fe4 100644
|
| --- a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
|
| +++ b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
|
| @@ -460,8 +460,18 @@ WebPreferences RenderViewHostDelegateHelper::GetWebkitPrefs(
|
| prefs->GetBoolean(prefs::kWebKitAllowDisplayingInsecureContent);
|
| web_prefs.allow_running_insecure_content =
|
| prefs->GetBoolean(prefs::kWebKitAllowRunningInsecureContent);
|
| - web_prefs.enable_scroll_animator =
|
| - command_line.HasSwitch(switches::kEnableSmoothScrolling);
|
| +
|
| +#if defined(OS_MACOSX)
|
| + bool default_enable_scroll_animator = true;
|
| +#else
|
| + // On CrOS, the launcher always passes in the --enable flag.
|
| + bool default_enable_scroll_animator = false;
|
| +#endif
|
| + web_prefs.enable_scroll_animator = default_enable_scroll_animator;
|
| + if (command_line.HasSwitch(switches::kEnableSmoothScrolling))
|
| + web_prefs.enable_scroll_animator = true;
|
| + if (command_line.HasSwitch(switches::kDisableSmoothScrolling))
|
| + web_prefs.enable_scroll_animator = false;
|
|
|
| // The user stylesheet watcher may not exist in a testing profile.
|
| if (profile->GetUserStyleSheetWatcher()) {
|
|
|