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 "chrome/browser/ui/webui/ntp/app_launcher_handler.h" | 5 #include "chrome/browser/ui/webui/ntp/app_launcher_handler.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "apps/metrics_names.h" | 9 #include "apps/metrics_names.h" |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 CleanupAfterUninstall(); | 832 CleanupAfterUninstall(); |
833 } | 833 } |
834 | 834 |
835 extensions::ExtensionUninstallDialog* | 835 extensions::ExtensionUninstallDialog* |
836 AppLauncherHandler::GetExtensionUninstallDialog() { | 836 AppLauncherHandler::GetExtensionUninstallDialog() { |
837 if (!extension_uninstall_dialog_.get()) { | 837 if (!extension_uninstall_dialog_.get()) { |
838 Browser* browser = chrome::FindBrowserWithWebContents( | 838 Browser* browser = chrome::FindBrowserWithWebContents( |
839 web_ui()->GetWebContents()); | 839 web_ui()->GetWebContents()); |
840 extension_uninstall_dialog_.reset( | 840 extension_uninstall_dialog_.reset( |
841 extensions::ExtensionUninstallDialog::Create( | 841 extensions::ExtensionUninstallDialog::Create( |
842 extension_service_->profile(), browser, this)); | 842 extension_service_->profile(), |
| 843 browser->window()->GetNativeWindow(), |
| 844 this)); |
843 } | 845 } |
844 return extension_uninstall_dialog_.get(); | 846 return extension_uninstall_dialog_.get(); |
845 } | 847 } |
OLD | NEW |