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

Unified Diff: chrome/browser/download/download_crx_util.cc

Issue 10696176: Move UserScript and related into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/download_crx_util.cc
diff --git a/chrome/browser/download/download_crx_util.cc b/chrome/browser/download/download_crx_util.cc
index 95d38437b102c3882f59a3b89e50a4559a211675..1fde0454362f1ff849dadb98b6807930a4b58aac 100644
--- a/chrome/browser/download/download_crx_util.cc
+++ b/chrome/browser/download/download_crx_util.cc
@@ -91,8 +91,8 @@ scoped_refptr<CrxInstaller> OpenChromeExtension(
CrxInstaller::OffStoreInstallAllowedBecausePref);
}
- if (UserScript::IsURLUserScript(download_item.GetURL(),
- download_item.GetMimeType())) {
+ if (extensions::UserScript::IsURLUserScript(download_item.GetURL(),
+ download_item.GetMimeType())) {
installer->InstallUserScript(download_item.GetFullPath(),
download_item.GetURL());
} else {
@@ -117,8 +117,8 @@ bool IsExtensionDownload(const DownloadItem& download_item) {
return false;
if (download_item.GetMimeType() == extensions::Extension::kMimeType ||
- UserScript::IsURLUserScript(download_item.GetURL(),
- download_item.GetMimeType())) {
+ extensions::UserScript::IsURLUserScript(download_item.GetURL(),
+ download_item.GetMimeType())) {
return true;
} else {
return false;

Powered by Google App Engine
This is Rietveld 408576698