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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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/chrome_download_manager_delegate.cc
diff --git a/chrome/browser/download/chrome_download_manager_delegate.cc b/chrome/browser/download/chrome_download_manager_delegate.cc
index 00580825c7dde76ec4a05700fcf5d9f2dab2bd5d..aad682d4223cd4d2e37818650076bf29d110ef4b 100644
--- a/chrome/browser/download/chrome_download_manager_delegate.cc
+++ b/chrome/browser/download/chrome_download_manager_delegate.cc
@@ -114,7 +114,7 @@ bool ChromeDownloadManagerDelegate::IsExtensionDownload(
if (item->PromptUserForSaveLocation())
return false;
- if (item->GetMimeType() == Extension::kMimeType ||
+ if (item->GetMimeType() == extensions::Extension::kMimeType ||
UserScript::IsURLUserScript(item->GetURL(), item->GetMimeType())) {
return true;
} else {
@@ -212,7 +212,7 @@ bool ChromeDownloadManagerDelegate::ShouldOpenFileBasedOnExtension(
FilePath::StringType extension = path.Extension();
if (extension.empty())
return false;
- if (Extension::IsExtension(path))
+ if (extensions::Extension::IsExtension(path))
return false;
DCHECK(extension[0] == FilePath::kExtensionSeparator);
extension.erase(0, 1);

Powered by Google App Engine
This is Rietveld 408576698