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

Side by Side Diff: chrome/browser/download/download_crx_util.cc

Issue 10703142: Move WebstoreInstaller, WebstoreInlineInstaller, related in extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest merge with master for cq Created 8 years, 5 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
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 // Download code which handles CRX files (extensions, themes, apps, ...). 5 // Download code which handles CRX files (extensions, themes, apps, ...).
6 6
7 #include "chrome/browser/download/download_util.h" 7 #include "chrome/browser/download/download_util.h"
8 #include "chrome/browser/extensions/crx_installer.h" 8 #include "chrome/browser/extensions/crx_installer.h"
9 #include "chrome/browser/extensions/extension_install_prompt.h" 9 #include "chrome/browser/extensions/extension_install_prompt.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
11 #include "chrome/browser/extensions/extension_system.h" 11 #include "chrome/browser/extensions/extension_system.h"
12 #include "chrome/browser/extensions/webstore_installer.h" 12 #include "chrome/browser/extensions/webstore_installer.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/ui/browser_finder.h" 14 #include "chrome/browser/ui/browser_finder.h"
15 #include "chrome/common/chrome_notification_types.h" 15 #include "chrome/common/chrome_notification_types.h"
16 #include "chrome/common/extensions/extension_switch_utils.h" 16 #include "chrome/common/extensions/extension_switch_utils.h"
17 #include "content/public/browser/download_item.h" 17 #include "content/public/browser/download_item.h"
18 #include "content/public/browser/notification_service.h" 18 #include "content/public/browser/notification_service.h"
19 19
20 using content::BrowserThread; 20 using content::BrowserThread;
21 using content::DownloadItem; 21 using content::DownloadItem;
22 using extensions::WebstoreInstaller;
22 23
23 namespace download_crx_util { 24 namespace download_crx_util {
24 25
25 namespace { 26 namespace {
26 27
27 // Hold a mock ExtensionInstallPrompt object that will be used when the 28 // Hold a mock ExtensionInstallPrompt object that will be used when the
28 // download system opens a CRX. 29 // download system opens a CRX.
29 ExtensionInstallPrompt* mock_install_prompt_for_testing = NULL; 30 ExtensionInstallPrompt* mock_install_prompt_for_testing = NULL;
30 31
31 // Called to get an extension install UI object. In tests, will return 32 // Called to get an extension install UI object. In tests, will return
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 if (download_item.GetMimeType() == extensions::Extension::kMimeType || 119 if (download_item.GetMimeType() == extensions::Extension::kMimeType ||
119 UserScript::IsURLUserScript(download_item.GetURL(), 120 UserScript::IsURLUserScript(download_item.GetURL(),
120 download_item.GetMimeType())) { 121 download_item.GetMimeType())) {
121 return true; 122 return true;
122 } else { 123 } else {
123 return false; 124 return false;
124 } 125 }
125 } 126 }
126 127
127 } // namespace download_crx_util 128 } // namespace download_crx_util
OLDNEW
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | chrome/browser/extensions/crx_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698