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

Unified Diff: blimp/client/core/contents/android/blimp_contents_observer_proxy.cc

Issue 2058263002: Tied up BlimpNavigationController to NavigationFeature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blimp_core
Patch Set: Removed BlimpContentsTest.java 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: blimp/client/core/contents/android/blimp_contents_observer_proxy.cc
diff --git a/blimp/client/core/contents/android/blimp_contents_observer_proxy.cc b/blimp/client/core/contents/android/blimp_contents_observer_proxy.cc
index 437d138372043e2e278e23cf7829a7f3b35630fd..61d668fce9984f9769e0f75eee803d86fd330ee3 100644
--- a/blimp/client/core/contents/android/blimp_contents_observer_proxy.cc
+++ b/blimp/client/core/contents/android/blimp_contents_observer_proxy.cc
@@ -47,14 +47,10 @@ void BlimpContentsObserverProxy::Destroy(
delete this;
}
-void BlimpContentsObserverProxy::OnURLUpdated(const GURL& url) {
+void BlimpContentsObserverProxy::OnNavigationStateChanged() {
JNIEnv* env = base::android::AttachCurrentThread();
- base::android::ScopedJavaLocalRef<jobject> obj(java_obj_);
- base::android::ScopedJavaLocalRef<jstring> jstring_url(
- base::android::ConvertUTF8ToJavaString(env, url.spec()));
-
- Java_BlimpContentsObserverProxy_onUrlUpdated(env, obj.obj(),
- jstring_url.obj());
+ Java_BlimpContentsObserverProxy_onNavigationStateChanged(env,
+ java_obj_.obj());
}
} // namespace client

Powered by Google App Engine
This is Rietveld 408576698