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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 15041004: Replace PruneAllButActive with PruneAllButVisible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 7 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
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(

Powered by Google App Engine
This is Rietveld 408576698