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

Unified Diff: chrome/browser/profiles/profile.h

Issue 7859001: Added ability to set ChromeDownloadManagerDelegate for testing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Various nits from self-review. Created 9 years, 3 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/profiles/profile.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index 357e5cadc24af5de19039b419ebe81641c9842e0..e83102a6d013f55e15500a33283a47ccdc822088 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -55,6 +55,7 @@ class SpeechRecognizer;
class AutocompleteClassifier;
class BookmarkModel;
class ChromeAppCacheService;
+class ChromeDownloadManagerDelegate;
class ChromeURLDataManager;
class Extension;
class ExtensionDevToolsManager;
@@ -555,6 +556,13 @@ class Profile : public content::BrowserContext {
static net::URLRequestContextGetter* default_request_context_;
private:
+ friend class DownloadTest;
+
+ // Allow replacement of the download manager delegate, for interposition
+ // on browser tests. Note that this takes ownership of |delegate|.
+ virtual void SetDownloadManagerDelegate(
+ ChromeDownloadManagerDelegate* delegate) = 0;
+
// ***DEPRECATED**: You should be passing in the specific profile's
// URLRequestContextGetter or using the system URLRequestContextGetter.
//

Powered by Google App Engine
This is Rietveld 408576698