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

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

Issue 47923018: Move FeatureSwitch to top-level extensions/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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
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/install_extension_handler.h" 5 #include "chrome/browser/ui/webui/extensions/install_extension_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/extensions/crx_installer.h" 10 #include "chrome/browser/extensions/crx_installer.h"
11 #include "chrome/browser/extensions/extension_install_prompt.h" 11 #include "chrome/browser/extensions/extension_install_prompt.h"
12 #include "chrome/browser/extensions/extension_service.h" 12 #include "chrome/browser/extensions/extension_service.h"
13 #include "chrome/browser/extensions/extension_system.h" 13 #include "chrome/browser/extensions/extension_system.h"
14 #include "chrome/browser/extensions/unpacked_installer.h" 14 #include "chrome/browser/extensions/unpacked_installer.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/common/extensions/feature_switch.h"
17 #include "content/public/browser/web_contents.h" 16 #include "content/public/browser/web_contents.h"
18 #include "content/public/browser/web_contents_view.h" 17 #include "content/public/browser/web_contents_view.h"
19 #include "content/public/browser/web_ui.h" 18 #include "content/public/browser/web_ui.h"
20 #include "content/public/browser/web_ui_data_source.h" 19 #include "content/public/browser/web_ui_data_source.h"
21 #include "content/public/common/drop_data.h" 20 #include "content/public/common/drop_data.h"
21 #include "extensions/common/feature_switch.h"
22 #include "grit/generated_resources.h" 22 #include "grit/generated_resources.h"
23 #include "net/base/net_util.h" 23 #include "net/base/net_util.h"
24 #include "ui/base/l10n/l10n_util.h" 24 #include "ui/base/l10n/l10n_util.h"
25 25
26 namespace extensions { 26 namespace extensions {
27 27
28 InstallExtensionHandler::InstallExtensionHandler() { 28 InstallExtensionHandler::InstallExtensionHandler() {
29 } 29 }
30 30
31 InstallExtensionHandler::~InstallExtensionHandler() { 31 InstallExtensionHandler::~InstallExtensionHandler() {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 void InstallExtensionHandler::HandleInstallDirectoryMessage( 126 void InstallExtensionHandler::HandleInstallDirectoryMessage(
127 const ListValue* args) { 127 const ListValue* args) {
128 Profile* profile = Profile::FromBrowserContext( 128 Profile* profile = Profile::FromBrowserContext(
129 web_ui()->GetWebContents()->GetBrowserContext()); 129 web_ui()->GetWebContents()->GetBrowserContext());
130 UnpackedInstaller::Create( 130 UnpackedInstaller::Create(
131 ExtensionSystem::Get(profile)-> 131 ExtensionSystem::Get(profile)->
132 extension_service())->Load(file_to_install_); 132 extension_service())->Load(file_to_install_);
133 } 133 }
134 134
135 } // namespace extensions 135 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_settings_handler.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698