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

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: Change to CHECK. 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 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(
« no previous file with comments | « chrome/test/data/prerender/prerender_visibility_quick.html ('k') | content/browser/web_contents/navigation_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698