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

Unified Diff: chrome/browser/chromeos/login/html_page_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
Index: chrome/browser/chromeos/login/html_page_screen.cc
===================================================================
--- chrome/browser/chromeos/login/html_page_screen.cc (revision 133597)
+++ chrome/browser/chromeos/login/html_page_screen.cc (working copy)
@@ -20,8 +20,8 @@
///////////////////////////////////////////////////////////////////////////////
// HTMLPageView
-HTMLPageView::HTMLPageView()
- : dom_view_(new WebPageDomView()) {
+HTMLPageView::HTMLPageView(content::BrowserContext* browser_context)
+ : dom_view_(new WebPageDomView(browser_context)) {
}
WebPageDomView* HTMLPageView::dom_view() {
@@ -48,13 +48,13 @@
StartTimeoutTimer();
GURL url(url_);
Profile* profile = ProfileManager::GetDefaultProfile();
- view()->InitDOM(profile, SiteInstance::CreateForURL(profile, url));
+ view()->InitWebView(SiteInstance::CreateForURL(profile, url));
view()->SetWebContentsDelegate(this);
view()->LoadURL(url);
}
HTMLPageView* HTMLPageScreen::AllocateView() {
- return new HTMLPageView();
+ return new HTMLPageView(ProfileManager::GetDefaultProfile());
}
void HTMLPageScreen::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
« no previous file with comments | « chrome/browser/chromeos/login/html_page_screen.h ('k') | chrome/browser/chromeos/login/login_html_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698