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

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

Issue 9224002: Make WebUI objects not derive from WebUI. WebUI objects own the controller. This is the ownership... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to head to clear linux_chromeos browsertest failures Created 8 years, 11 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/webui_login_view.cc
===================================================================
--- chrome/browser/chromeos/login/webui_login_view.cc (revision 117871)
+++ chrome/browser/chromeos/login/webui_login_view.cc (working copy)
@@ -21,6 +21,7 @@
#include "chrome/browser/ui/views/dom_view.h"
#include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
#include "chrome/common/render_messages.h"
+#include "content/browser/webui/web_ui.h"
#include "content/public/browser/render_view_host_observer.h"
#include "content/public/browser/web_contents.h"
#include "ui/gfx/rect.h"
@@ -317,7 +318,7 @@
chromeos::DBusThreadManager::Get()->GetSessionManagerClient()
->EmitLoginPromptVisible();
- OobeUI* oobe_ui = static_cast<OobeUI*>(GetWebUI());
+ OobeUI* oobe_ui = static_cast<OobeUI*>(GetWebUI()->GetController());
// Notify OOBE that the login frame has been rendered. Currently
// this is used to start camera presence check.
oobe_ui->OnLoginPromptVisible();

Powered by Google App Engine
This is Rietveld 408576698