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

Unified Diff: chrome/browser/chromeos/login/registration_screen.cc

Issue 10171006: Convert more users away from DOMView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/chromeos/login/registration_screen.h ('k') | chrome/browser/chromeos/login/web_page_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/registration_screen.cc
===================================================================
--- chrome/browser/chromeos/login/registration_screen.cc (revision 133597)
+++ chrome/browser/chromeos/login/registration_screen.cc (working copy)
@@ -42,6 +42,11 @@
///////////////////////////////////////////////////////////////////////////////
// RegistrationView, protected:
+RegistrationView::RegistrationView(content::BrowserContext* browser_context)
+ : dom_view_(new WebPageDomView(browser_context)) {
+}
+
+
WebPageDomView* RegistrationView::dom_view() {
return dom_view_;
}
@@ -71,13 +76,13 @@
StartTimeoutTimer();
GURL url(kRegistrationHostPageUrl);
Profile* profile = ProfileManager::GetDefaultProfile();
- view()->InitDOM(profile, SiteInstance::CreateForURL(profile, url));
+ view()->InitWebView(SiteInstance::CreateForURL(profile, url));
view()->SetWebContentsDelegate(this);
view()->LoadURL(url);
}
RegistrationView* RegistrationScreen::AllocateView() {
- return new RegistrationView();
+ return new RegistrationView(ProfileManager::GetDefaultProfile());
}
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « chrome/browser/chromeos/login/registration_screen.h ('k') | chrome/browser/chromeos/login/web_page_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698