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

Unified Diff: chrome/browser/ui/webui/sync_setup_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
« no previous file with comments | « chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc ('k') | chrome/browser/ui/webui/sync_setup_handler2.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/sync_setup_handler.cc
===================================================================
--- chrome/browser/ui/webui/sync_setup_handler.cc (revision 116011)
+++ chrome/browser/ui/webui/sync_setup_handler.cc (working copy)
@@ -25,7 +25,9 @@
#include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h"
#include "chrome/common/net/gaia/gaia_constants.h"
#include "chrome/common/url_constants.h"
-#include "content/browser/tab_contents/tab_contents.h"
+#include "content/browser/renderer_host/render_view_host.h"
+#include "content/browser/renderer_host/render_view_host_delegate.h"
+#include "content/public/browser/web_contents.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
@@ -244,7 +246,7 @@
// version of the Sync Promo.
int message_body_resource_id = IDS_SYNC_PROMO_MESSAGE_BODY_A;
if (web_ui && SyncPromoUI::GetIsLaunchPageForSyncPromoURL(
- web_ui->tab_contents()->GetURL())) {
+ web_ui->web_contents()->GetURL())) {
message_body_resource_id = sync_promo_trial::GetMessageBodyResID();
}
localized_strings->SetString(
@@ -451,7 +453,7 @@
}
void SyncSetupHandler::Focus() {
- static_cast<RenderViewHostDelegate*>(web_ui()->tab_contents())->Activate();
+ web_ui()->web_contents()->GetRenderViewHost()->delegate()->Activate();
}
void SyncSetupHandler::OnDidClosePage(const ListValue* args) {
« no previous file with comments | « chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc ('k') | chrome/browser/ui/webui/sync_setup_handler2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698