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

Unified Diff: components/policy/core/browser/android/android_combined_policy_provider.cc

Issue 2237943002: Remove now-unnecessary .obj() in Java method calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@switch-context
Patch Set: Rebase *again* :( Created 4 years, 4 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: components/policy/core/browser/android/android_combined_policy_provider.cc
diff --git a/components/policy/core/browser/android/android_combined_policy_provider.cc b/components/policy/core/browser/android/android_combined_policy_provider.cc
index 7f1aeecf2c68eff8c151d5dfa8936f766aa691c2..50a9ecc81b3d16999d305d332b73ddf32fbce588 100644
--- a/components/policy/core/browser/android/android_combined_policy_provider.cc
+++ b/components/policy/core/browser/android/android_combined_policy_provider.cc
@@ -29,7 +29,7 @@ AndroidCombinedPolicyProvider::AndroidCombinedPolicyProvider(
policy_converter_.reset(new policy::android::PolicyConverter(schema));
java_combined_policy_provider_.Reset(Java_CombinedPolicyProvider_linkNative(
AttachCurrentThread(), reinterpret_cast<intptr_t>(this),
- policy_converter_->GetJavaObject().obj()));
+ policy_converter_->GetJavaObject()));
}
AndroidCombinedPolicyProvider::~AndroidCombinedPolicyProvider() {
@@ -39,8 +39,8 @@ AndroidCombinedPolicyProvider::~AndroidCombinedPolicyProvider() {
void AndroidCombinedPolicyProvider::RefreshPolicies() {
JNIEnv* env = AttachCurrentThread();
- Java_CombinedPolicyProvider_refreshPolicies(
- env, java_combined_policy_provider_.obj());
+ Java_CombinedPolicyProvider_refreshPolicies(env,
+ java_combined_policy_provider_);
}
void AndroidCombinedPolicyProvider::FlushPolicies(

Powered by Google App Engine
This is Rietveld 408576698