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

Unified Diff: android_webview/native/aw_contents.cc

Issue 1223643002: android_webview: Replace usage of GetActiveEntry by GetLastCommittedEntry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | android_webview/native/permission/permission_request_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index 99752bc63aac42530bdba22d14d7cf4061813890..42992ae42853c04ef1c173077d284a947c9fe360 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -691,7 +691,7 @@ void AwContents::OnReceivedIcon(const GURL& icon_url, const SkBitmap& bitmap) {
return;
content::NavigationEntry* entry =
- web_contents_->GetController().GetActiveEntry();
+ web_contents_->GetController().GetLastCommittedEntry();
if (entry) {
nasko 2015/07/03 10:00:59 Just a generic comment for the overall code struct
Torne 2015/07/03 10:12:59 Hm, possibly :/ File a bug and we can look into i
entry->GetFavicon().valid = true;
@@ -743,12 +743,12 @@ void AwContents::OnNewPicture() {
}
}
-base::android::ScopedJavaLocalRef<jbyteArray>
- AwContents::GetCertificate(JNIEnv* env,
- jobject obj) {
+base::android::ScopedJavaLocalRef<jbyteArray> AwContents::GetCertificate(
+ JNIEnv* env,
+ jobject obj) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
content::NavigationEntry* entry =
- web_contents_->GetController().GetActiveEntry();
+ web_contents_->GetController().GetLastCommittedEntry();
if (!entry)
return ScopedJavaLocalRef<jbyteArray>();
// Get the certificate
« no previous file with comments | « no previous file | android_webview/native/permission/permission_request_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698