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

Unified Diff: chrome/browser/ui/toolbar/back_forward_menu_model.cc

Issue 8983012: Get rid of content::NavigationController in cc file and use "using" instead. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 12 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: chrome/browser/ui/toolbar/back_forward_menu_model.cc
===================================================================
--- chrome/browser/ui/toolbar/back_forward_menu_model.cc (revision 116288)
+++ chrome/browser/ui/toolbar/back_forward_menu_model.cc (working copy)
@@ -30,6 +30,7 @@
#include "ui/base/text/text_elider.h"
#include "ui/gfx/codec/png_codec.h"
+using content::NavigationController;
using content::NavigationEntry;
using content::UserMetricsAction;
using content::WebContents;
@@ -335,7 +336,7 @@
int BackForwardMenuModel::GetIndexOfNextChapterStop(int start_from,
bool forward) const {
WebContents* contents = GetWebContents();
- content::NavigationController& controller = contents->GetController();
+ NavigationController& controller = contents->GetController();
int max_count = controller.GetEntryCount();
if (start_from < 0 || start_from >= max_count)
@@ -445,7 +446,7 @@
NavigationEntry* BackForwardMenuModel::GetNavigationEntry(int index) const {
int controller_index = MenuIndexToNavEntryIndex(index);
- content::NavigationController& controller = GetWebContents()->GetController();
+ NavigationController& controller = GetWebContents()->GetController();
if (controller_index >= 0 && controller_index < controller.GetEntryCount())
return controller.GetEntryAtIndex(controller_index);
« no previous file with comments | « chrome/browser/ui/search_engines/search_engine_tab_helper.cc ('k') | chrome/browser/ui/toolbar/toolbar_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698