Index: content/browser/android/content_view_core_impl.cc |
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
index 46415545f57aa717a6dfbb0bf1e4c6ba6a2a3d6d..bf39efd037e0943e1974b2ce0cce9fd074cbdb92 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -1193,8 +1193,8 @@ void ContentViewCoreImpl::ContinuePendingReload(JNIEnv* env, jobject obj) { |
void ContentViewCoreImpl::ClearHistory(JNIEnv* env, jobject obj) { |
// TODO(creis): Do callers of this need to know if it fails? |
- if (web_contents_->GetController().CanPruneAllButVisible()) |
- web_contents_->GetController().PruneAllButVisible(); |
+ if (web_contents_->GetController().CanPruneAllButLastCommitted()) |
+ web_contents_->GetController().PruneAllButLastCommitted(); |
} |
void ContentViewCoreImpl::AddJavascriptInterface( |