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

Unified Diff: content/browser/background_sync/background_sync_context_impl.h

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: content/browser/background_sync/background_sync_context_impl.h
diff --git a/content/browser/background_sync/background_sync_context_impl.h b/content/browser/background_sync/background_sync_context_impl.h
index 1eebe7002568e16874757c8761d5c815893e72d4..f845b3042ab48f719d6d7bfd4bcd6d8a3dee3a17 100644
--- a/content/browser/background_sync/background_sync_context_impl.h
+++ b/content/browser/background_sync/background_sync_context_impl.h
@@ -5,11 +5,11 @@
#ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_CONTEXT_IMPL_H_
#define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_CONTEXT_IMPL_H_
+#include <memory>
#include <set>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "content/common/background_sync_service.mojom.h"
#include "content/common/content_export.h"
#include "content/public/browser/background_sync_context.h"
@@ -51,7 +51,7 @@ class CONTENT_EXPORT BackgroundSyncContextImpl : public BackgroundSyncContext {
~BackgroundSyncContextImpl() override;
void set_background_sync_manager_for_testing(
- scoped_ptr<BackgroundSyncManager> manager);
+ std::unique_ptr<BackgroundSyncManager> manager);
private:
friend class BackgroundSyncServiceImplTest;
@@ -65,7 +65,7 @@ class CONTENT_EXPORT BackgroundSyncContextImpl : public BackgroundSyncContext {
void ShutdownOnIO();
// Only accessed on the IO thread.
- scoped_ptr<BackgroundSyncManager> background_sync_manager_;
+ std::unique_ptr<BackgroundSyncManager> background_sync_manager_;
// The services are owned by this. They're either deleted
// during ShutdownOnIO or when the channel is closed via

Powered by Google App Engine
This is Rietveld 408576698