Index: content/browser/renderer_host/render_widget_host_view_mac.mm |
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm |
index 0dc3ef091766a161c2af2c3a9f3e4e66f8a37342..139d3b6ce10d89662b90ee90c1d8217a640b3699 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm |
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm |
@@ -18,8 +18,9 @@ |
#include "base/debug/crash_logging.h" |
#include "base/logging.h" |
#include "base/mac/scoped_cftyperef.h" |
-#import "base/mac/scoped_nsobject.h" |
#include "base/mac/sdk_forward_declarations.h" |
+#include "base/macros.h" |
+#import "base/mac/scoped_nsobject.h" |
#include "base/memory/ref_counted.h" |
#include "base/metrics/histogram.h" |
#include "base/numerics/safe_conversions.h" |
@@ -521,6 +522,13 @@ RenderWidgetHostViewMac::RenderWidgetHostViewMac(RenderWidgetHost* widget, |
->GetInputEventRouter() |
->AddSurfaceClientIdOwner(GetSurfaceClientId(), this); |
} |
+ |
+ RenderViewHost* rvh = RenderViewHost::From(render_widget_host_); |
+ if (rvh) { |
+ // TODO(mostynb): actually use prefs. Landing this as a separate CL |
+ // first to rebaseline some unreliable layout tests. |
+ ignore_result(rvh->GetWebkitPreferences()); |
+ } |
} |
RenderWidgetHostViewMac::~RenderWidgetHostViewMac() { |