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

Unified Diff: chrome/browser/android/intent_helper.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/android/intent_helper.cc
diff --git a/chrome/browser/android/intent_helper.cc b/chrome/browser/android/intent_helper.cc
index 367b2508fcf64d6ed13b1e5df65771ff6cc96616..187d1ec9273ba7a1c722e700405b2eebe6887f3e 100644
--- a/chrome/browser/android/intent_helper.cc
+++ b/chrome/browser/android/intent_helper.cc
@@ -6,7 +6,6 @@
#include <jni.h>
-#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "base/android/scoped_java_ref.h"
@@ -33,15 +32,13 @@ void SendEmail(const base::string16& d_email,
ConvertUTF16ToJavaString(env, d_chooser_title);
ScopedJavaLocalRef<jstring> j_file_to_attach =
ConvertUTF16ToJavaString(env, d_file_to_attach);
- Java_IntentHelper_sendEmail(env, base::android::GetApplicationContext(),
- j_email, j_subject, j_body, j_chooser_title,
+ Java_IntentHelper_sendEmail(env, j_email, j_subject, j_body, j_chooser_title,
j_file_to_attach);
}
void OpenDateAndTimeSettings() {
JNIEnv* env = AttachCurrentThread();
- Java_IntentHelper_openDateAndTimeSettings(env,
- base::android::GetApplicationContext());
+ Java_IntentHelper_openDateAndTimeSettings(env);
}
} // namespace android
« no previous file with comments | « chrome/browser/android/devtools_server.cc ('k') | chrome/browser/android/net/external_estimate_provider_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698