| Index: chrome/browser/android/net/external_estimate_provider_android.cc
|
| diff --git a/chrome/browser/android/net/external_estimate_provider_android.cc b/chrome/browser/android/net/external_estimate_provider_android.cc
|
| index 90a8747ac9b8d0da54d4e61f29d3fc5f71062de0..a46065105970ab845a3b2a39674a79e2ee36043b 100644
|
| --- a/chrome/browser/android/net/external_estimate_provider_android.cc
|
| +++ b/chrome/browser/android/net/external_estimate_provider_android.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include <stdint.h>
|
|
|
| +#include "base/android/context_utils.h"
|
| #include "base/location.h"
|
| #include "base/single_thread_task_runner.h"
|
| #include "content/public/browser/browser_thread.h"
|
| @@ -25,7 +26,8 @@
|
| JNIEnv* env = base::android::AttachCurrentThread();
|
| j_external_estimate_provider_.Reset(
|
| Java_ExternalEstimateProviderAndroid_create(
|
| - env, reinterpret_cast<intptr_t>(this)));
|
| + env, base::android::GetApplicationContext(),
|
| + reinterpret_cast<intptr_t>(this)));
|
| DCHECK(!j_external_estimate_provider_.is_null());
|
| no_value_ = Java_ExternalEstimateProviderAndroid_getNoValue(env);
|
| }
|
|
|