summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents/render_view_host_delegate_helper.cc')
-rw-r--r--chrome/browser/tab_contents/render_view_host_delegate_helper.cc8
1 files changed, 2 insertions, 6 deletions
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 977674d..79b2fa1 100644
--- a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
+++ b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
@@ -193,13 +193,9 @@ WebPreferences RenderViewHostDelegateHelper::GetWebkitPrefs(
command_line.HasSwitch(switches::kAllowFileAccessFromFiles);
web_prefs.show_composited_layer_borders =
command_line.HasSwitch(switches::kShowCompositedLayerBorders);
- web_prefs.user_style_sheet_enabled =
- command_line.HasSwitch(switches::kEnableUserStyleSheet);
- if (web_prefs.user_style_sheet_enabled) {
- web_prefs.user_style_sheet_location =
+ web_prefs.user_style_sheet_enabled = true;
+ web_prefs.user_style_sheet_location =
profile->GetUserStyleSheetWatcher()->user_style_sheet();
- }
-
}
web_prefs.uses_universal_detector =