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

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

Issue 8956050: Rename TabContents::controller() to GetController and put it into the WebContents interface. (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_strip_model.cc ('k') | chrome/browser/tabs/tab_strip_model_unittest.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_order_controller.cc
===================================================================
--- chrome/browser/tabs/tab_strip_model_order_controller.cc (revision 115228)
+++ chrome/browser/tabs/tab_strip_model_order_controller.cc (working copy)
@@ -40,7 +40,7 @@
return tabstrip_->active_index() + delta;
}
NavigationController* opener =
- &tabstrip_->GetActiveTabContents()->tab_contents()->controller();
+ &tabstrip_->GetActiveTabContents()->tab_contents()->GetController();
// Get the index of the next item opened by this tab, and insert after
// it...
int index;
@@ -76,7 +76,7 @@
// group of the removed tab.
NavigationController* removed_controller =
&tabstrip_->GetTabContentsAt(removing_index)->
- tab_contents()->controller();
+ tab_contents()->GetController();
// The parent opener should never be the same as the controller being removed.
DCHECK(parent_opener != removed_controller);
int index = tabstrip_->GetIndexOfNextTabContentsOpenedBy(removed_controller,
@@ -131,9 +131,9 @@
if (user_gesture && new_opener != old_opener &&
((old_contents == NULL && new_opener == NULL) ||
- new_opener != &old_contents->tab_contents()->controller()) &&
+ new_opener != &old_contents->tab_contents()->GetController()) &&
((new_contents == NULL && old_opener == NULL) ||
- old_opener != &new_contents->tab_contents()->controller())) {
+ old_opener != &new_contents->tab_contents()->GetController())) {
tabstrip_->ForgetAllOpeners();
}
}
« no previous file with comments | « chrome/browser/tabs/tab_strip_model.cc ('k') | chrome/browser/tabs/tab_strip_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698