| 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 c7104a10521465db5a74681b03a7e514796c5f3e..4138ad98991dcb9bb5266d1a28422e392f317761 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(
|
|
|