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

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

Issue 2777063008: Connect BackgroundFetch to the OfflineItemCollection
Patch Set: Fixed incognito check and added tests Created 3 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/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index edeed7859bf421be26f6801bc2933046e7ffaf19..eb5e66647ef99899704ab0cd0331622377941f1b 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -19,6 +19,8 @@
#include "base/threading/thread_task_runner_handle.h"
#include "build/build_config.h"
#include "chrome/browser/autocomplete/in_memory_url_index_factory.h"
+#include "chrome/browser/background_fetch/background_fetch_client_factory.h"
+#include "chrome/browser/background_fetch/background_fetch_client_impl.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/bookmarks/chrome_bookmark_client.h"
#include "chrome/browser/bookmarks/managed_bookmark_service_factory.h"
@@ -972,6 +974,10 @@ content::PermissionManager* TestingProfile::GetPermissionManager() {
return NULL;
}
+content::BackgroundFetchClient* TestingProfile::GetBackgroundFetchClient() {
+ return BackgroundFetchClientFactory::GetForProfile(this);
+}
+
content::BackgroundSyncController*
TestingProfile::GetBackgroundSyncController() {
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698