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

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

Issue 10536059: TabContentsWrapper -> TabContents, part 7. (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
« no previous file with comments | « chrome/browser/bookmarks/bookmark_manager_extension_api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_utils.cc
diff --git a/chrome/browser/bookmarks/bookmark_utils.cc b/chrome/browser/bookmarks/bookmark_utils.cc
index 73fba008d4e9959c498464c2696c931a5a1cea4a..5b3175ef5295141eb15d3b8c72459c02496b57c0 100644
--- a/chrome/browser/bookmarks/bookmark_utils.cc
+++ b/chrome/browser/bookmarks/bookmark_utils.cc
@@ -157,7 +157,7 @@ void OpenAllImpl(const BookmarkNode* node,
// the current page, reset the navigator just to be sure.
Browser* new_browser = browser::FindLastActiveWithProfile(profile);
if (new_browser) {
- WebContents* current_tab = new_browser->GetSelectedWebContents();
+ WebContents* current_tab = new_browser->GetActiveWebContents();
if (current_tab)
*navigator = current_tab;
} // else, new_browser == NULL, which happens during testing.
@@ -389,14 +389,14 @@ void OpenAll(gfx::NativeWindow parent,
NewBrowserPageNavigator navigator_impl(profile);
if (!navigator) {
Browser* browser = browser::FindTabbedBrowser(profile, false);
- if (!browser || !browser->GetSelectedWebContents()) {
+ if (!browser || !browser->GetActiveWebContents()) {
navigator = &navigator_impl;
} else {
if (initial_disposition != NEW_WINDOW &&
initial_disposition != OFF_THE_RECORD) {
browser->window()->Activate();
}
- navigator = browser->GetSelectedWebContents();
+ navigator = browser->GetActiveWebContents();
}
}
@@ -667,7 +667,7 @@ void GetURLAndTitleToBookmarkFromCurrentTab(Profile* profile,
GURL* url,
string16* title) {
Browser* browser = browser::FindLastActiveWithProfile(profile);
- WebContents* web_contents = browser ? browser->GetSelectedWebContents()
+ WebContents* web_contents = browser ? browser->GetActiveWebContents()
: NULL;
if (web_contents)
GetURLAndTitleToBookmark(web_contents, url, title);
« no previous file with comments | « chrome/browser/bookmarks/bookmark_manager_extension_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698