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

Unified Diff: chrome/browser/download/download_extension_api.h

Issue 10542038: Rewrite DownloadsApiTest in C++. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 8 years, 6 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_extension_api.h
diff --git a/chrome/browser/download/download_extension_api.h b/chrome/browser/download/download_extension_api.h
index 9cf95f4f7dfdef600c59268c3480b20cfbe4638a..0eb303b25e98fe89a42cadf41a1f52c1a4f991b9 100644
--- a/chrome/browser/download/download_extension_api.h
+++ b/chrome/browser/download/download_extension_api.h
@@ -43,7 +43,7 @@ extern const char kInvalidOperationError[];
extern const char kInvalidOrderByError[];
extern const char kInvalidQueryLimit[];
extern const char kInvalidStateError[];
-extern const char kInvalidUrlError[];
+extern const char kInvalidURLError[];
extern const char kNotImplementedError[];
} // namespace download_extension_errors
@@ -357,6 +357,12 @@ class ExtensionDownloadsEventRouter : public content::DownloadManager::Observer,
virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE;
virtual void OnDownloadOpened(content::DownloadItem* download) OVERRIDE;
+ // Used for testing.
+ struct DownloadsNotificationSource {
+ std::string event_name;
+ Profile* profile;
+ };
+
private:
struct OnChangedStat {
OnChangedStat();

Powered by Google App Engine
This is Rietveld 408576698