Index: content/browser/device_sensors/device_inertial_sensor_browsertest.cc |
diff --git a/content/browser/device_sensors/device_inertial_sensor_browsertest.cc b/content/browser/device_sensors/device_inertial_sensor_browsertest.cc |
index 3380d8a2e74ab43ff229f4115e4676f76b525219..81da0a1656bd29120c3353142e9a20e166a28a52 100644 |
--- a/content/browser/device_sensors/device_inertial_sensor_browsertest.cc |
+++ b/content/browser/device_sensors/device_inertial_sensor_browsertest.cc |
@@ -202,9 +202,9 @@ class DeviceInertialSensorBrowserTest : public ContentBrowserTest { |
} |
void WaitForAlertDialogAndQuitAfterDelay(base::TimeDelta delay) { |
- ShellJavaScriptDialogManager* dialog_manager= |
+ ShellJavaScriptDialogManager* dialog_manager = |
static_cast<ShellJavaScriptDialogManager*>( |
- shell()->GetJavaScriptDialogManager()); |
+ shell()->GetJavaScriptDialogManager(shell()->web_contents())); |
scoped_refptr<MessageLoopRunner> runner = new MessageLoopRunner(); |
dialog_manager->set_dialog_request_callback( |