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

Side by Side Diff: chrome/browser/ui/webui/extensions/extension_settings_handler.cc

Issue 10031002: Allow extension APIs to be compiled out. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unneeded resources Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 GURL url = host->GetDelegate()->GetURL(); 802 GURL url = host->GetDelegate()->GetURL();
803 content::RenderProcessHost* process = host->GetProcess(); 803 content::RenderProcessHost* process = host->GetProcess();
804 result->push_back( 804 result->push_back(
805 ExtensionPage(url, process->GetID(), host->GetRoutingID(), 805 ExtensionPage(url, process->GetID(), host->GetRoutingID(),
806 process->GetBrowserContext()->IsOffTheRecord())); 806 process->GetBrowserContext()->IsOffTheRecord()));
807 } 807 }
808 } 808 }
809 809
810 ExtensionUninstallDialog* 810 ExtensionUninstallDialog*
811 ExtensionSettingsHandler::GetExtensionUninstallDialog() { 811 ExtensionSettingsHandler::GetExtensionUninstallDialog() {
812 #if !defined(OS_ANDROID)
812 if (!extension_uninstall_dialog_.get()) { 813 if (!extension_uninstall_dialog_.get()) {
813 extension_uninstall_dialog_.reset( 814 extension_uninstall_dialog_.reset(
814 ExtensionUninstallDialog::Create(Profile::FromWebUI(web_ui()), this)); 815 ExtensionUninstallDialog::Create(Profile::FromWebUI(web_ui()), this));
815 } 816 }
816 return extension_uninstall_dialog_.get(); 817 return extension_uninstall_dialog_.get();
818 #else
819 return NULL;
820 #endif // !defined(OS_ANDROID)
817 } 821 }
818 822
819 void ExtensionSettingsHandler::InspectExtensionHost(ExtensionHost* host) { 823 void ExtensionSettingsHandler::InspectExtensionHost(ExtensionHost* host) {
820 DevToolsWindow::OpenDevToolsWindow(host->render_view_host()); 824 DevToolsWindow::OpenDevToolsWindow(host->render_view_host());
821 } 825 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698