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

Side by Side Diff: blimp/client/core/contents/android/blimp_contents_observer_proxy.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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "blimp/client/core/contents/android/blimp_contents_observer_proxy.h" 5 #include "blimp/client/core/contents/android/blimp_contents_observer_proxy.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "blimp/client/core/contents/android/blimp_contents_impl_android.h" 10 #include "blimp/client/core/contents/android/blimp_contents_impl_android.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 void BlimpContentsObserverProxy::Destroy( 43 void BlimpContentsObserverProxy::Destroy(
44 JNIEnv* env, 44 JNIEnv* env,
45 const base::android::JavaParamRef<jobject>& jobj) { 45 const base::android::JavaParamRef<jobject>& jobj) {
46 blimp_contents_impl_android_->blimp_contents_impl()->RemoveObserver(this); 46 blimp_contents_impl_android_->blimp_contents_impl()->RemoveObserver(this);
47 delete this; 47 delete this;
48 } 48 }
49 49
50 void BlimpContentsObserverProxy::OnNavigationStateChanged() { 50 void BlimpContentsObserverProxy::OnNavigationStateChanged() {
51 JNIEnv* env = base::android::AttachCurrentThread(); 51 JNIEnv* env = base::android::AttachCurrentThread();
52 Java_BlimpContentsObserverProxy_onNavigationStateChanged(env, 52 Java_BlimpContentsObserverProxy_onNavigationStateChanged(env, java_obj_);
53 java_obj_.obj());
54 } 53 }
55 54
56 } // namespace client 55 } // namespace client
57 } // namespace blimp 56 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698