Index: pdf/out_of_process_instance.cc |
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc |
index 6cce626dd822537f84bf67860878cea2878edb45..417b4a3d887dde401e16dc2b0c0b56af0b713428 100644 |
--- a/pdf/out_of_process_instance.cc |
+++ b/pdf/out_of_process_instance.cc |
@@ -104,7 +104,7 @@ const char kJSCancelStreamUrlType[] = "cancelStreamUrl"; |
// Navigate to the given URL (Plugin -> Page) |
const char kJSNavigateType[] = "navigate"; |
const char kJSNavigateUrl[] = "url"; |
-const char kJSNavigateNewTab[] = "newTab"; |
+const char kJSNavigateOption[] = "option"; |
// Open the email editor with the given parameters (Plugin -> Page) |
const char kJSEmailType[] = "email"; |
const char kJSEmailTo[] = "to"; |
@@ -977,11 +977,11 @@ void OutOfProcessInstance::ScrollToPage(int page) { |
} |
void OutOfProcessInstance::NavigateTo(const std::string& url, |
- bool open_in_new_tab) { |
+ int option) { |
pp::VarDictionary message; |
message.Set(kType, kJSNavigateType); |
message.Set(kJSNavigateUrl, url); |
- message.Set(kJSNavigateNewTab, open_in_new_tab); |
+ message.Set(kJSNavigateOption, pp::Var(option)); |
PostMessage(message); |
} |