Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: chrome/browser/android/net/external_estimate_provider_android.cc

Issue 2784353002: Android: Remove GetApplicationContext part 2 (Closed)
Patch Set: Fix tests Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/intent_helper.cc ('k') | chrome/browser/android/ntp/ntp_snippets_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a46065105970ab845a3b2a39674a79e2ee36043b..90a8747ac9b8d0da54d4e61f29d3fc5f71062de0 100644
--- a/chrome/browser/android/net/external_estimate_provider_android.cc
+++ b/chrome/browser/android/net/external_estimate_provider_android.cc
@@ -6,7 +6,6 @@
#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"
@@ -26,8 +25,7 @@ ExternalEstimateProviderAndroid::ExternalEstimateProviderAndroid()
JNIEnv* env = base::android::AttachCurrentThread();
j_external_estimate_provider_.Reset(
Java_ExternalEstimateProviderAndroid_create(
- env, base::android::GetApplicationContext(),
- reinterpret_cast<intptr_t>(this)));
+ env, reinterpret_cast<intptr_t>(this)));
DCHECK(!j_external_estimate_provider_.is_null());
no_value_ = Java_ExternalEstimateProviderAndroid_getNoValue(env);
}
« no previous file with comments | « chrome/browser/android/intent_helper.cc ('k') | chrome/browser/android/ntp/ntp_snippets_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698