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

Unified Diff: content/browser/web_contents/web_contents_view_aura.cc

Issue 949473002: Avoid unnecessary casts in NavigationControllerImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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/web_contents/web_contents_view_aura.cc
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
index 83f64cb0dbbc916adfbbebca7a7a21c9f6f422df..dc4c5352c7789f9b4c41958954da4d5ed7d61b3d 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -126,11 +126,9 @@ class OverscrollWindowDelegate : public aura_extra::ImageWindowDelegate {
const NavigationControllerImpl& controller = web_contents->GetController();
const NavigationEntryImpl* entry = NULL;
if (ShouldNavigateForward(controller, overscroll_mode)) {
- entry = NavigationEntryImpl::FromNavigationEntry(
- controller.GetEntryAtOffset(1));
+ entry = controller.GetEntryAtOffset(1);
} else if (ShouldNavigateBack(controller, overscroll_mode)) {
- entry = NavigationEntryImpl::FromNavigationEntry(
- controller.GetEntryAtOffset(-1));
+ entry = controller.GetEntryAtOffset(-1);
}
gfx::Image image;
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/browser/web_contents/web_contents_view_aura_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698