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

Unified Diff: chrome/browser/extensions/updater/chrome_extension_downloader_factory.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/chrome_extension_downloader_factory.h
diff --git a/chrome/browser/extensions/updater/chrome_extension_downloader_factory.h b/chrome/browser/extensions/updater/chrome_extension_downloader_factory.h
index b4ab072045e600af843d9fe3e01c4790a48e4682..2f3a787a9ef172680dbcf7392ce14a7f1e298f12 100644
--- a/chrome/browser/extensions/updater/chrome_extension_downloader_factory.h
+++ b/chrome/browser/extensions/updater/chrome_extension_downloader_factory.h
@@ -5,7 +5,7 @@
#ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_EXTENSION_DOWNLOADER_FACTORY_H_
#define CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_EXTENSION_DOWNLOADER_FACTORY_H_
-#include "base/memory/scoped_ptr.h"
+#include <memory>
class Profile;
@@ -24,14 +24,14 @@ class ChromeExtensionDownloaderFactory {
public:
// Creates a downloader with the given request context. No profile identity
// is associated with this downloader.
- static scoped_ptr<extensions::ExtensionDownloader> CreateForRequestContext(
- net::URLRequestContextGetter* request_context,
- extensions::ExtensionDownloaderDelegate* delegate);
+ static std::unique_ptr<extensions::ExtensionDownloader>
+ CreateForRequestContext(net::URLRequestContextGetter* request_context,
+ extensions::ExtensionDownloaderDelegate* delegate);
// Creates a downloader for a given Profile. This downloader will be able
// to authenticate as the signed-in user in the event that it's asked to
// fetch a protected download.
- static scoped_ptr<extensions::ExtensionDownloader> CreateForProfile(
+ static std::unique_ptr<extensions::ExtensionDownloader> CreateForProfile(
Profile* profile,
extensions::ExtensionDownloaderDelegate* delegate);
};

Powered by Google App Engine
This is Rietveld 408576698