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

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

Issue 257983002: Move downloads API to extensions namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile error for unittest Created 6 years, 8 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_history.cc
diff --git a/chrome/browser/download/download_history.cc b/chrome/browser/download/download_history.cc
index ea2f2e13c015240c7426e5c2bdfa1ec43465d284..b6c40453cd668856836c39a6bbff2506d1156457 100644
--- a/chrome/browser/download/download_history.cc
+++ b/chrome/browser/download/download_history.cc
@@ -102,7 +102,8 @@ history::DownloadRow GetDownloadRow(
content::DownloadItem* item) {
std::string by_ext_id, by_ext_name;
#if !defined(OS_ANDROID)
- DownloadedByExtension* by_ext = DownloadedByExtension::Get(item);
+ extensions::DownloadedByExtension* by_ext =
+ extensions::DownloadedByExtension::Get(item);
if (by_ext) {
by_ext_id = by_ext->id();
by_ext_name = by_ext->name();
@@ -247,7 +248,8 @@ void DownloadHistory::QueryCallback(scoped_ptr<InfoVector> infos) {
it->opened);
#if !defined(OS_ANDROID)
if (!it->by_ext_id.empty() && !it->by_ext_name.empty()) {
- new DownloadedByExtension(item, it->by_ext_id, it->by_ext_name);
+ new extensions::DownloadedByExtension(
+ item, it->by_ext_id, it->by_ext_name);
item->UpdateObservers();
}
#endif
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | chrome/browser/download/download_history_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698