summaryrefslogtreecommitdiffstats
path: root/chrome/browser/first_run.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/first_run.cc')
-rw-r--r--chrome/browser/first_run.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/chrome/browser/first_run.cc b/chrome/browser/first_run.cc
index 950391b..51720ab 100644
--- a/chrome/browser/first_run.cc
+++ b/chrome/browser/first_run.cc
@@ -182,12 +182,8 @@ bool Upgrade::RelaunchChromeBrowser(const CommandLine& command_line) {
}
void OpenFirstRunDialog(Profile* profile) {
- FirstRunView* first_run_view = new FirstRunView(profile);
- ChromeViews::Window* first_run_dialog =
- ChromeViews::Window::CreateChromeWindow(NULL, gfx::Rect(),
- first_run_view, first_run_view);
- first_run_dialog->Show();
- first_run_view->set_dialog(first_run_dialog);
+ ChromeViews::Window::CreateChromeWindow(NULL, gfx::Rect(),
+ new FirstRunView(profile))->Show();
// We must now run a message loop (will be terminated when the First Run UI
// is closed) so that the window can receive messages and we block the
// browser window from showing up. We pass the accelerator handler here so