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

Unified Diff: chrome/browser/android/preferences/website_preference_bridge.cc

Issue 1996193003: Add support for calling the java Callback from native. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 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/ntp/ntp_snippets_bridge.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/preferences/website_preference_bridge.cc
diff --git a/chrome/browser/android/preferences/website_preference_bridge.cc b/chrome/browser/android/preferences/website_preference_bridge.cc
index 52f6d54faf96e6212210acb09ca9cb0b10156bd8..62f8784ad826e58770d414d87097f71c5e294a26 100644
--- a/chrome/browser/android/preferences/website_preference_bridge.cc
+++ b/chrome/browser/android/preferences/website_preference_bridge.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/android/preferences/website_preference_bridge.h"
+#include "base/android/callback_android.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "base/android/scoped_java_ref.h"
@@ -544,9 +545,7 @@ class StorageInfoReadyCallback {
env_, list.obj(), host.obj(), i->type, i->usage);
}
- Java_StorageInfoReadyCallback_onStorageInfoReady(
- env_, java_callback_.obj(), list.obj());
-
+ base::android::RunCallbackAndroid(java_callback_, list);
delete this;
}
@@ -605,8 +604,7 @@ class LocalStorageInfoReadyCallback {
env_, map.obj(), origin.obj(), full_origin.obj(), i->size);
}
- Java_LocalStorageInfoReadyCallback_onLocalStorageInfoReady(
- env_, java_callback_.obj(), map.obj());
+ base::android::RunCallbackAndroid(java_callback_, map);
delete this;
}
« no previous file with comments | « chrome/browser/android/ntp/ntp_snippets_bridge.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698