summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_commands.cc
diff options
context:
space:
mode:
authorjww@chromium.org <jww@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-13 01:11:01 +0000
committerjww@chromium.org <jww@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-13 01:11:01 +0000
commit7936898a17ce7f7a99de184aca2ef7ec2badfeab (patch)
treef9b5199bc69ef62dfde2d25844465d4a528b8eb2 /chrome/browser/ui/browser_commands.cc
parentb350d2995cbaeeca5c7d88b1f8e6c5495aef573c (diff)
downloadchromium_src-7936898a17ce7f7a99de184aca2ef7ec2badfeab.zip
chromium_src-7936898a17ce7f7a99de184aca2ef7ec2badfeab.tar.gz
chromium_src-7936898a17ce7f7a99de184aca2ef7ec2badfeab.tar.bz2
Renamed CanPruneAllButVisible and PruneAllButVisible in the Navigation Controller to CanPruneAllButLastCommitted and PruneAllButLastCommitted, respectively.
Review URL: https://codereview.chromium.org/69013004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234693 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_commands.cc')
-rw-r--r--chrome/browser/ui/browser_commands.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index 9d6151a..196688b 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -1057,8 +1057,8 @@ void ViewSource(Browser* browser,
// Note that Clone does not copy the pending or transient entries, so the
// active entry in view_source_contents will be the last committed entry.
WebContents* view_source_contents = contents->Clone();
- DCHECK(view_source_contents->GetController().CanPruneAllButVisible());
- view_source_contents->GetController().PruneAllButVisible();
+ DCHECK(view_source_contents->GetController().CanPruneAllButLastCommitted());
+ view_source_contents->GetController().PruneAllButLastCommitted();
NavigationEntry* active_entry =
view_source_contents->GetController().GetActiveEntry();
if (!active_entry)