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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_login_handler.cc

Issue 9003014: Replace WebUI::tab_contents() with web_contents() and switch all users to use web_contents.h inst... (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
Index: chrome/browser/ui/webui/ntp/ntp_login_handler.cc
===================================================================
--- chrome/browser/ui/webui/ntp/ntp_login_handler.cc (revision 116011)
+++ chrome/browser/ui/webui/ntp/ntp_login_handler.cc (working copy)
@@ -31,9 +31,9 @@
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
-#include "content/browser/tab_contents/tab_contents.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_service.h"
+#include "content/public/browser/web_contents.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
#include "net/base/escape.h"
@@ -129,13 +129,13 @@
OpenURLParams params(
GURL(chrome::kChromeUISyncPromoURL), Referrer(), CURRENT_TAB,
content::PAGE_TRANSITION_LINK, false);
- web_ui()->tab_contents()->OpenURL(params);
+ web_ui()->web_contents()->OpenURL(params);
RecordInHistogram(NTP_SIGN_IN_PROMO_CLICKED);
}
} else if (args->GetSize() == 4) {
// The user is signed in, show the profiles menu.
Browser* browser =
- BrowserList::FindBrowserWithTabContents(web_ui()->tab_contents());
+ BrowserList::FindBrowserWithWebContents(web_ui()->web_contents());
if (!browser)
return;
double x = 0;
@@ -151,7 +151,7 @@
success = args->GetDouble(3, &height);
DCHECK(success);
gfx::Rect rect(x, y, width, height);
- browser->window()->ShowAvatarBubble(web_ui()->tab_contents(), rect);
+ browser->window()->ShowAvatarBubble(web_ui()->web_contents(), rect);
ProfileMetrics::LogProfileOpenMethod(ProfileMetrics::NTP_AVATAR_BUBBLE);
}
}
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.cc ('k') | chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698