| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 BrowserWindow* browser_window = browser->window(); | 362 BrowserWindow* browser_window = browser->window(); |
| 363 if (!browser_window) { | 363 if (!browser_window) { |
| 364 delegate->InstallUIAbort(false); | 364 delegate->InstallUIAbort(false); |
| 365 return; | 365 return; |
| 366 } | 366 } |
| 367 | 367 |
| 368 ExtensionInstallDialogView* dialog = new ExtensionInstallDialogView( | 368 ExtensionInstallDialogView* dialog = new ExtensionInstallDialogView( |
| 369 delegate, prompt); | 369 delegate, prompt); |
| 370 | 370 |
| 371 views::Widget* window = views::Widget::CreateWindowWithParent( | 371 views::Widget* window = views::Widget::CreateWindowWithParent( |
| 372 dialog, browser_window->GetNativeHandle()); | 372 dialog, browser_window->GetNativeWindow()); |
| 373 window->Show(); | 373 window->Show(); |
| 374 } | 374 } |
| OLD | NEW |