| 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 abfe74ec48b7c4f3abb658d9641fbc89192b40d3..b4b3d94355b3d42aa5a642e72aeae299e82b8253 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(
|
|
|