| Index: chrome/browser/android/offline_pages/downloads/offline_page_notification_bridge.cc
|
| diff --git a/chrome/browser/android/offline_pages/downloads/offline_page_notification_bridge.cc b/chrome/browser/android/offline_pages/downloads/offline_page_notification_bridge.cc
|
| index 407d81ec10a8c429240d131936725c538ed6c7f8..b729a843f724dd556be0060006fc6eaf9988c67c 100644
|
| --- a/chrome/browser/android/offline_pages/downloads/offline_page_notification_bridge.cc
|
| +++ b/chrome/browser/android/offline_pages/downloads/offline_page_notification_bridge.cc
|
| @@ -12,7 +12,6 @@
|
| using base::android::AttachCurrentThread;
|
| using base::android::ConvertUTF16ToJavaString;
|
| using base::android::ConvertUTF8ToJavaString;
|
| -using base::android::GetApplicationContext;
|
|
|
| namespace {
|
|
|
| @@ -38,7 +37,7 @@ void OfflinePageNotificationBridge::NotifyDownloadSuccessful(
|
| const DownloadUIItem& item) {
|
| JNIEnv* env = AttachCurrentThread();
|
| Java_OfflinePageNotificationBridge_notifyDownloadSuccessful(
|
| - env, GetApplicationContext(), ConvertUTF8ToJavaString(env, item.guid),
|
| + env, ConvertUTF8ToJavaString(env, item.guid),
|
| ConvertUTF8ToJavaString(env, item.url.spec()), GetDisplayName(item));
|
| }
|
|
|
| @@ -46,7 +45,7 @@ void OfflinePageNotificationBridge::NotifyDownloadFailed(
|
| const DownloadUIItem& item) {
|
| JNIEnv* env = AttachCurrentThread();
|
| Java_OfflinePageNotificationBridge_notifyDownloadFailed(
|
| - env, GetApplicationContext(), ConvertUTF8ToJavaString(env, item.guid),
|
| + env, ConvertUTF8ToJavaString(env, item.guid),
|
| ConvertUTF8ToJavaString(env, item.url.spec()), GetDisplayName(item));
|
| }
|
|
|
| @@ -54,7 +53,7 @@ void OfflinePageNotificationBridge::NotifyDownloadProgress(
|
| const DownloadUIItem& item) {
|
| JNIEnv* env = AttachCurrentThread();
|
| Java_OfflinePageNotificationBridge_notifyDownloadProgress(
|
| - env, GetApplicationContext(), ConvertUTF8ToJavaString(env, item.guid),
|
| + env, ConvertUTF8ToJavaString(env, item.guid),
|
| ConvertUTF8ToJavaString(env, item.url.spec()),
|
| item.start_time.ToJavaTime(), item.download_progress_bytes,
|
| GetDisplayName(item));
|
| @@ -64,29 +63,26 @@ void OfflinePageNotificationBridge::NotifyDownloadPaused(
|
| const DownloadUIItem& item) {
|
| JNIEnv* env = AttachCurrentThread();
|
| Java_OfflinePageNotificationBridge_notifyDownloadPaused(
|
| - env, GetApplicationContext(), ConvertUTF8ToJavaString(env, item.guid),
|
| - GetDisplayName(item));
|
| + env, ConvertUTF8ToJavaString(env, item.guid), GetDisplayName(item));
|
| }
|
|
|
| void OfflinePageNotificationBridge::NotifyDownloadInterrupted(
|
| const DownloadUIItem& item) {
|
| JNIEnv* env = AttachCurrentThread();
|
| Java_OfflinePageNotificationBridge_notifyDownloadInterrupted(
|
| - env, GetApplicationContext(), ConvertUTF8ToJavaString(env, item.guid),
|
| - GetDisplayName(item));
|
| + env, ConvertUTF8ToJavaString(env, item.guid), GetDisplayName(item));
|
| }
|
|
|
| void OfflinePageNotificationBridge::NotifyDownloadCanceled(
|
| const DownloadUIItem& item) {
|
| JNIEnv* env = AttachCurrentThread();
|
| Java_OfflinePageNotificationBridge_notifyDownloadCanceled(
|
| - env, GetApplicationContext(), ConvertUTF8ToJavaString(env, item.guid));
|
| + env, ConvertUTF8ToJavaString(env, item.guid));
|
| }
|
|
|
| void OfflinePageNotificationBridge::ShowDownloadingToast() {
|
| JNIEnv* env = AttachCurrentThread();
|
| - Java_OfflinePageNotificationBridge_showDownloadingToast(
|
| - env, GetApplicationContext());
|
| + Java_OfflinePageNotificationBridge_showDownloadingToast(env);
|
| }
|
|
|
| } // namespace android
|
|
|