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

Unified Diff: chrome/browser/extensions/sync_bundle.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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: chrome/browser/extensions/sync_bundle.h
diff --git a/chrome/browser/extensions/sync_bundle.h b/chrome/browser/extensions/sync_bundle.h
index d8229bf269c413d9dcb9121cc973fedc42e74094..22c907ac06b85cd3fa6e2c90178b6eec01c02acc 100644
--- a/chrome/browser/extensions/sync_bundle.h
+++ b/chrome/browser/extensions/sync_bundle.h
@@ -5,11 +5,11 @@
#ifndef CHROME_BROWSER_EXTENSIONS_SYNC_BUNDLE_H_
#define CHROME_BROWSER_EXTENSIONS_SYNC_BUNDLE_H_
+#include <memory>
#include <set>
#include <string>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "sync/api/sync_change.h"
#include "sync/api/sync_change_processor.h"
#include "sync/api/sync_data.h"
@@ -25,7 +25,8 @@ class SyncBundle {
SyncBundle();
~SyncBundle();
- void StartSyncing(scoped_ptr<syncer::SyncChangeProcessor> sync_processor);
+ void StartSyncing(
+ std::unique_ptr<syncer::SyncChangeProcessor> sync_processor);
// Resets this class back to its default values, which will disable all
// syncing until StartSyncing is called again.
@@ -78,7 +79,7 @@ class SyncBundle {
void RemoveSyncedExtension(const std::string& id);
bool HasSyncedExtension(const std::string& id) const;
- scoped_ptr<syncer::SyncChangeProcessor> sync_processor_;
+ std::unique_ptr<syncer::SyncChangeProcessor> sync_processor_;
// Stores the set of extensions we know about. Used to decide if a sync change
// should be ACTION_ADD or ACTION_UPDATE.
« no previous file with comments | « chrome/browser/extensions/standard_management_policy_provider_unittest.cc ('k') | chrome/browser/extensions/sync_bundle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698