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

Unified Diff: chrome/browser/bookmarks/bookmark_utils.cc

Issue 10702029: Move tab functions off Browser into browser_tabstrip and browser_tabrestore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/bookmarks/bookmark_utils.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_utils.cc (revision 145001)
+++ chrome/browser/bookmarks/bookmark_utils.cc (working copy)
@@ -22,6 +22,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/simple_message_box.h"
#include "chrome/common/pref_names.h"
@@ -386,14 +387,14 @@
NewBrowserPageNavigator navigator_impl(profile);
if (!navigator) {
Browser* browser = browser::FindTabbedBrowser(profile, false);
- if (!browser || !browser->GetActiveWebContents()) {
+ if (!browser || !chrome::GetActiveWebContents(browser)) {
navigator = &navigator_impl;
} else {
if (initial_disposition != NEW_WINDOW &&
initial_disposition != OFF_THE_RECORD) {
browser->window()->Activate();
}
- navigator = browser->GetActiveWebContents();
+ navigator = chrome::GetActiveWebContents(browser);
}
}
@@ -664,8 +665,9 @@
std::vector<std::pair<GURL, string16> >* urls) {
for (int i = 0; i < browser->tab_count(); ++i) {
std::pair<GURL, string16> entry;
- GetURLAndTitleToBookmark(browser->GetWebContentsAt(i), &(entry.first),
- &(entry.second));
+ GetURLAndTitleToBookmark(
+ chrome::GetWebContentsAt(browser, i), &(entry.first),
+ &(entry.second));
urls->push_back(entry);
}
}
« no previous file with comments | « chrome/browser/bookmarks/bookmark_context_menu_controller.cc ('k') | chrome/browser/browser_commands_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698