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

Unified Diff: chrome/browser/ui/android/autofill/credit_card_scanner_view_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
Index: chrome/browser/ui/android/autofill/credit_card_scanner_view_android.cc
diff --git a/chrome/browser/ui/android/autofill/credit_card_scanner_view_android.cc b/chrome/browser/ui/android/autofill/credit_card_scanner_view_android.cc
index 94292efa9678bd9b8d1f1db7d1dbfe1bbed4baef..729837c354ea0959fe5f7d4c89905ea2472ea4fb 100644
--- a/chrome/browser/ui/android/autofill/credit_card_scanner_view_android.cc
+++ b/chrome/browser/ui/android/autofill/credit_card_scanner_view_android.cc
@@ -6,7 +6,6 @@
#include <memory>
-#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "base/feature_list.h"
@@ -29,8 +28,7 @@ namespace autofill {
bool CreditCardScannerView::CanShow() {
JNIEnv* env = base::android::AttachCurrentThread();
base::android::ScopedJavaGlobalRef<jobject> java_object(
- Java_CreditCardScannerBridge_create(
- env, 0, base::android::GetApplicationContext(), nullptr));
+ Java_CreditCardScannerBridge_create(env, 0, nullptr));
return Java_CreditCardScannerBridge_canScan(env, java_object);
}
@@ -54,7 +52,6 @@ CreditCardScannerViewAndroid::CreditCardScannerViewAndroid(
java_object_(Java_CreditCardScannerBridge_create(
base::android::AttachCurrentThread(),
reinterpret_cast<intptr_t>(this),
- base::android::GetApplicationContext(),
web_contents->GetJavaWebContents())) {}
CreditCardScannerViewAndroid::~CreditCardScannerViewAndroid() {}

Powered by Google App Engine
This is Rietveld 408576698