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

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

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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/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/unpacked_installer.h" 13 #include "chrome/browser/extensions/unpacked_installer.h"
14 #include "chrome/browser/extensions/zipfile_installer.h" 14 #include "chrome/browser/extensions/zipfile_installer.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/grit/generated_resources.h"
16 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
17 #include "content/public/browser/web_ui.h" 18 #include "content/public/browser/web_ui.h"
18 #include "content/public/browser/web_ui_data_source.h" 19 #include "content/public/browser/web_ui_data_source.h"
19 #include "content/public/common/drop_data.h" 20 #include "content/public/common/drop_data.h"
20 #include "extensions/browser/extension_system.h" 21 #include "extensions/browser/extension_system.h"
21 #include "extensions/common/feature_switch.h" 22 #include "extensions/common/feature_switch.h"
22 #include "grit/generated_resources.h"
23 #include "net/base/filename_util.h" 23 #include "net/base/filename_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() {
32 } 32 }
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 void InstallExtensionHandler::HandleInstallDirectoryMessage( 138 void InstallExtensionHandler::HandleInstallDirectoryMessage(
139 const base::ListValue* args) { 139 const base::ListValue* args) {
140 Profile* profile = Profile::FromBrowserContext( 140 Profile* profile = Profile::FromBrowserContext(
141 web_ui()->GetWebContents()->GetBrowserContext()); 141 web_ui()->GetWebContents()->GetBrowserContext());
142 UnpackedInstaller::Create( 142 UnpackedInstaller::Create(
143 ExtensionSystem::Get(profile)-> 143 ExtensionSystem::Get(profile)->
144 extension_service())->Load(file_to_install_); 144 extension_service())->Load(file_to_install_);
145 } 145 }
146 146
147 } // namespace extensions 147 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698