Index: chrome/browser/android/service_tab_launcher.cc |
diff --git a/chrome/browser/android/service_tab_launcher.cc b/chrome/browser/android/service_tab_launcher.cc |
index d3236351f76a65ee6a73671214e9f2b0fc221c01..d33e6213472e629c92c876a3ab80db27fffb4978 100644 |
--- a/chrome/browser/android/service_tab_launcher.cc |
+++ b/chrome/browser/android/service_tab_launcher.cc |
@@ -4,6 +4,7 @@ |
#include "chrome/browser/android/service_tab_launcher.h" |
+#include "base/android/context_utils.h" |
#include "base/android/jni_string.h" |
#include "base/callback.h" |
#include "base/memory/ptr_util.h" |
@@ -14,6 +15,7 @@ |
using base::android::AttachCurrentThread; |
using base::android::ConvertUTF8ToJavaString; |
+using base::android::GetApplicationContext; |
using base::android::JavaParamRef; |
using base::android::ScopedJavaLocalRef; |
@@ -65,7 +67,7 @@ |
base::MakeUnique<TabLaunchedCallback>(callback)); |
DCHECK_GE(request_id, 1); |
- Java_ServiceTabLauncher_launchTab(env, request_id, |
+ Java_ServiceTabLauncher_launchTab(env, GetApplicationContext(), request_id, |
browser_context->IsOffTheRecord(), url, |
static_cast<int>(disposition), referrer_url, |
params.referrer.policy, headers, post_data); |