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

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

Issue 9015022: Replace most of Browser::GetSelectedTabContents calls into Browser::GetSelectedWebContents. I've ... (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
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils.h ('k') | chrome/browser/browser_commands_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_utils.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_utils.cc (revision 116109)
+++ chrome/browser/bookmarks/bookmark_utils.cc (working copy)
@@ -157,7 +157,7 @@
// the current page, reset the navigator just to be sure.
Browser* new_browser = BrowserList::GetLastActiveWithProfile(profile);
if (new_browser) {
- TabContents* current_tab = new_browser->GetSelectedTabContents();
+ WebContents* current_tab = new_browser->GetSelectedWebContents();
DCHECK(new_browser && current_tab);
if (new_browser && current_tab)
*navigator = current_tab;
@@ -385,14 +385,14 @@
NewBrowserPageNavigator navigator_impl(profile);
if (!navigator) {
Browser* browser = BrowserList::FindTabbedBrowser(profile, false);
- if (!browser || !browser->GetSelectedTabContents()) {
+ if (!browser || !browser->GetSelectedWebContents()) {
navigator = &navigator_impl;
} else {
if (initial_disposition != NEW_WINDOW &&
initial_disposition != OFF_THE_RECORD) {
browser->window()->Activate();
}
- navigator = browser->GetSelectedTabContents();
+ navigator = browser->GetSelectedWebContents();
}
}
@@ -652,21 +652,21 @@
PrefService::UNSYNCABLE_PREF);
}
-void GetURLAndTitleToBookmark(TabContents* tab_contents,
+void GetURLAndTitleToBookmark(WebContents* web_contents,
GURL* url,
string16* title) {
- *url = tab_contents->GetURL();
- *title = tab_contents->GetTitle();
+ *url = web_contents->GetURL();
+ *title = web_contents->GetTitle();
}
void GetURLAndTitleToBookmarkFromCurrentTab(Profile* profile,
GURL* url,
string16* title) {
Browser* browser = BrowserList::GetLastActiveWithProfile(profile);
- TabContents* tab_contents = browser ? browser->GetSelectedTabContents()
+ WebContents* web_contents = browser ? browser->GetSelectedWebContents()
: NULL;
- if (tab_contents)
- GetURLAndTitleToBookmark(tab_contents, url, title);
+ if (web_contents)
+ GetURLAndTitleToBookmark(web_contents, url, title);
}
void GetURLsForOpenTabs(
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils.h ('k') | chrome/browser/browser_commands_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698