diff options
| author | jkarlin <jkarlin@chromium.org> | 2015-10-06 08:13:35 -0700 |
|---|---|---|
| committer | Commit bot <commit-bot@chromium.org> | 2015-10-06 15:14:39 +0000 |
| commit | 6f5078ed47fa34af63cec4139db3347bcb74ecb4 (patch) | |
| tree | 55a05742fe85dff9300f051f8448483148993b12 /chrome/browser/profiles/profile_impl.cc | |
| parent | 75a0abfba2569e38b0d8cd6bfd6a7f135d2fffe2 (diff) | |
| download | chromium_src-6f5078ed47fa34af63cec4139db3347bcb74ecb4.zip chromium_src-6f5078ed47fa34af63cec4139db3347bcb74ecb4.tar.gz chromium_src-6f5078ed47fa34af63cec4139db3347bcb74ecb4.tar.bz2 | |
[BackgroundSync] Add BackgroundSyncController to Chrome
The new BackgroundSyncController allows content::BackgroundSyncManager to access Chrome features like Rappor and, in a followup CL, the BackgroundSyncLauncher.
BUG=538640
Review URL: https://codereview.chromium.org/1369823003
Cr-Commit-Position: refs/heads/master@{#352605}
Diffstat (limited to 'chrome/browser/profiles/profile_impl.cc')
| -rw-r--r-- | chrome/browser/profiles/profile_impl.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc index 5c8bc99..5c659b6 100644 --- a/chrome/browser/profiles/profile_impl.cc +++ b/chrome/browser/profiles/profile_impl.cc @@ -29,6 +29,8 @@ #include "base/trace_event/trace_event.h" #include "base/version.h" #include "chrome/browser/background/background_contents_service_factory.h" +#include "chrome/browser/background_sync/background_sync_controller_factory.h" +#include "chrome/browser/background_sync/background_sync_controller_impl.h" #include "chrome/browser/bookmarks/bookmark_model_factory.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/chrome_notification_types.h" @@ -1024,6 +1026,10 @@ content::PermissionManager* ProfileImpl::GetPermissionManager() { return PermissionManagerFactory::GetForProfile(this); } +content::BackgroundSyncController* ProfileImpl::GetBackgroundSyncController() { + return BackgroundSyncControllerFactory::GetForProfile(this); +} + bool ProfileImpl::IsSameProfile(Profile* profile) { if (profile == static_cast<Profile*>(this)) return true; |
