| 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 8bc6e47463906dcfc287eb06b0ea0342c0aaf3d0..ee8f7a713fecb0dcff97bcf2b1b6e34b7d94cd07 100644
|
| --- a/content/browser/android/content_view_core_impl.cc
|
| +++ b/content/browser/android/content_view_core_impl.cc
|
| @@ -1182,7 +1182,9 @@ void ContentViewCoreImpl::ContinuePendingReload(JNIEnv* env, jobject obj) {
|
| }
|
|
|
| void ContentViewCoreImpl::ClearHistory(JNIEnv* env, jobject obj) {
|
| - web_contents_->GetController().PruneAllButActive();
|
| + // TODO(creis): Do callers of this need to know if it fails?
|
| + if (web_contents_->GetController().CanPruneAllButVisible())
|
| + web_contents_->GetController().PruneAllButVisible();
|
| }
|
|
|
| void ContentViewCoreImpl::AddJavascriptInterface(
|
|
|