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

Unified Diff: chrome/browser/tabs/tab_strip_model.cc

Issue 8956059: Rename NavigationController to NavigationControllerImpl and put it into the content namespace. Al... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
« no previous file with comments | « chrome/browser/tabs/tab_finder.cc ('k') | chrome/browser/translate/options_menu_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tabs/tab_strip_model.cc
===================================================================
--- chrome/browser/tabs/tab_strip_model.cc (revision 115900)
+++ chrome/browser/tabs/tab_strip_model.cc (working copy)
@@ -34,6 +34,7 @@
#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_contents_delegate.h"
+using content::NavigationEntry;
using content::UserMetricsAction;
using content::WebContents;
@@ -216,14 +217,13 @@
NULL /* base_tab_contents */,
NULL /* session_storage_namespace */));
TabContentsWrapper* old_contents = GetContentsAt(index);
- content::NavigationEntry* old_nav_entry =
+ NavigationEntry* old_nav_entry =
old_contents->tab_contents()->GetController().GetActiveEntry();
if (old_nav_entry) {
// Set the new tab contents to reload this URL when clicked.
// This also allows the tab to keep drawing the favicon and page title.
- content::NavigationEntry* new_nav_entry =
- content::NavigationEntry::Create(*old_nav_entry);
- std::vector<content::NavigationEntry*> entries;
+ NavigationEntry* new_nav_entry = NavigationEntry::Create(*old_nav_entry);
+ std::vector<NavigationEntry*> entries;
entries.push_back(new_nav_entry);
null_contents->tab_contents()->GetController().Restore(0, false, &entries);
}
« no previous file with comments | « chrome/browser/tabs/tab_finder.cc ('k') | chrome/browser/translate/options_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698