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/extensions/extension_settings_handler.h" | 5 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/base64.h" | 8 #include "base/base64.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 GURL url = host->GetDelegate()->GetURL(); | 803 GURL url = host->GetDelegate()->GetURL(); |
804 content::RenderProcessHost* process = host->GetProcess(); | 804 content::RenderProcessHost* process = host->GetProcess(); |
805 result->push_back( | 805 result->push_back( |
806 ExtensionPage(url, process->GetID(), host->GetRoutingID(), | 806 ExtensionPage(url, process->GetID(), host->GetRoutingID(), |
807 process->GetBrowserContext()->IsOffTheRecord())); | 807 process->GetBrowserContext()->IsOffTheRecord())); |
808 } | 808 } |
809 } | 809 } |
810 | 810 |
811 ExtensionUninstallDialog* | 811 ExtensionUninstallDialog* |
812 ExtensionSettingsHandler::GetExtensionUninstallDialog() { | 812 ExtensionSettingsHandler::GetExtensionUninstallDialog() { |
| 813 #if !defined(OS_ANDROID) |
813 if (!extension_uninstall_dialog_.get()) { | 814 if (!extension_uninstall_dialog_.get()) { |
814 extension_uninstall_dialog_.reset( | 815 extension_uninstall_dialog_.reset( |
815 ExtensionUninstallDialog::Create(Profile::FromWebUI(web_ui()), this)); | 816 ExtensionUninstallDialog::Create(Profile::FromWebUI(web_ui()), this)); |
816 } | 817 } |
817 return extension_uninstall_dialog_.get(); | 818 return extension_uninstall_dialog_.get(); |
| 819 #else |
| 820 return NULL; |
| 821 #endif // !defined(OS_ANDROID) |
818 } | 822 } |
819 | 823 |
820 void ExtensionSettingsHandler::InspectExtensionHost(ExtensionHost* host) { | 824 void ExtensionSettingsHandler::InspectExtensionHost(ExtensionHost* host) { |
821 DevToolsWindow::OpenDevToolsWindow(host->render_view_host()); | 825 DevToolsWindow::OpenDevToolsWindow(host->render_view_host()); |
822 } | 826 } |
OLD | NEW |