Index: components/test_runner/test_runner.cc |
diff --git a/components/test_runner/test_runner.cc b/components/test_runner/test_runner.cc |
index 023c8d6455440eb5443a0a97053e47c95b945795..785e818ac32e04783364afceee00fca9ea200691 100644 |
--- a/components/test_runner/test_runner.cc |
+++ b/components/test_runner/test_runner.cc |
@@ -15,6 +15,7 @@ |
#include "components/test_runner/web_content_settings.h" |
#include "components/test_runner/web_test_delegate.h" |
#include "components/test_runner/web_test_proxy.h" |
+#include "content/public/common/platform_notification_data.h" |
#include "gin/arguments.h" |
#include "gin/array_buffer.h" |
#include "gin/handle.h" |
@@ -1389,7 +1390,7 @@ void TestRunnerBindings::SimulateWebNotificationClick(gin::Arguments* args) { |
if (!runner_) |
return; |
std::string title; |
- int action_index = -1; |
+ int action_index = content::kNotificationClickWasNotAnAction; |
if (args->GetNext(&title) && |
(args->PeekNext().IsEmpty() || args->GetNext(&action_index))) |
runner_->SimulateWebNotificationClick(title, action_index); |