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

Unified Diff: chrome/browser/extensions/updater/extension_cache_impl.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/updater/extension_cache_impl.h
diff --git a/chrome/browser/extensions/updater/extension_cache_impl.h b/chrome/browser/extensions/updater/extension_cache_impl.h
index e04245fd91a70898f0cac535e82c75bdc49dd83e..0033cd6f151cbe3e4b7cd3239c996a07deef99f0 100644
--- a/chrome/browser/extensions/updater/extension_cache_impl.h
+++ b/chrome/browser/extensions/updater/extension_cache_impl.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_IMPL_H_
#define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_IMPL_H_
+#include <memory>
#include <set>
#include <string>
#include <vector>
@@ -12,7 +13,6 @@
#include "base/callback_forward.h"
#include "base/files/file_path.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -32,7 +32,7 @@ class LocalExtensionCache;
class ExtensionCacheImpl : public ExtensionCache,
public content::NotificationObserver {
public:
- explicit ExtensionCacheImpl(scoped_ptr<ExtensionCacheDelegate> delegate);
+ explicit ExtensionCacheImpl(std::unique_ptr<ExtensionCacheDelegate> delegate);
~ExtensionCacheImpl() override;
// Implementation of ExtensionCache.
@@ -62,7 +62,7 @@ class ExtensionCacheImpl : public ExtensionCache,
bool CachingAllowed(const std::string& id);
// Cache implementation that uses local cache dir.
- scoped_ptr<LocalExtensionCache> cache_;
+ std::unique_ptr<LocalExtensionCache> cache_;
// Set of extensions that can be cached.
std::set<std::string> allowed_extensions_;

Powered by Google App Engine
This is Rietveld 408576698