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

Unified Diff: chrome/browser/profiles/off_the_record_profile_impl.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/browser/profiles/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index 8c330f94d79545b56f887b9a6711474de2bb2dad..b948b4325b6c5f78fa00e66f78cdad722c2482ad 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -16,6 +16,8 @@
#include "base/strings/string_util.h"
#include "build/build_config.h"
#include "chrome/browser/background/background_contents_service_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/background_sync/background_sync_controller_factory.h"
#include "chrome/browser/background_sync/background_sync_controller_impl.h"
#include "chrome/browser/browser_process.h"
@@ -400,6 +402,11 @@ content::PermissionManager* OffTheRecordProfileImpl::GetPermissionManager() {
return PermissionManagerFactory::GetForProfile(this);
}
+content::BackgroundFetchClient*
+OffTheRecordProfileImpl::GetBackgroundFetchClient() {
+ return BackgroundFetchClientFactory::GetForProfile(this);
+}
+
content::BackgroundSyncController*
OffTheRecordProfileImpl::GetBackgroundSyncController() {
return BackgroundSyncControllerFactory::GetForProfile(this);

Powered by Google App Engine
This is Rietveld 408576698