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

Unified Diff: chrome/test/base/testing_profile.h

Issue 7601013: Web Intents: Hook up the register intent InfoBar with the WebIntentsRegistry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes and more\! Created 9 years, 4 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/test/base/testing_profile.h
diff --git a/chrome/test/base/testing_profile.h b/chrome/test/base/testing_profile.h
index 0c0847dc8f1706e24518e86cec3c9a0b2b2ac2fe..823cc732fa66fc9303faa3b343e3353c89059173 100644
--- a/chrome/test/base/testing_profile.h
+++ b/chrome/test/base/testing_profile.h
@@ -48,6 +48,7 @@ class ProfileSyncService;
class TemplateURLService;
class TestingPrefService;
class ThemeService;
+class WebIntentsRegistry;
class WebKitContext;
namespace net {
@@ -181,6 +182,8 @@ class TestingProfile : public Profile {
virtual history::TopSites* GetTopSitesWithoutCreating();
virtual DownloadManager* GetDownloadManager();
virtual PersonalDataManager* GetPersonalDataManager();
+ void SetWebIntentsRegistry(WebIntentsRegistry* registry);
+ virtual WebIntentsRegistry* GetWebIntentsRegistry();
virtual fileapi::FileSystemContext* GetFileSystemContext();
virtual void SetQuotaManager(quota::QuotaManager* manager);
virtual quota::QuotaManager* GetQuotaManager();
@@ -332,6 +335,9 @@ class TestingProfile : public Profile {
scoped_refptr<net::URLRequestContextGetter> request_context_;
scoped_refptr<net::URLRequestContextGetter> extensions_request_context_;
+ // The WebIntentsRegistry, for the purpose of dependency injection.
+ scoped_refptr<WebIntentsRegistry> web_intents_registry_;
+
std::wstring id_;
bool incognito_;
@@ -340,7 +346,6 @@ class TestingProfile : public Profile {
// Did the last session exit cleanly? Default is true.
bool last_session_exited_cleanly_;
-
// FileSystemContext. Created lazily by GetFileSystemContext().
scoped_refptr<fileapi::FileSystemContext> file_system_context_;

Powered by Google App Engine
This is Rietveld 408576698