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

Unified Diff: chrome/browser/extensions/install_signer.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/install_signer.h
diff --git a/chrome/browser/extensions/install_signer.h b/chrome/browser/extensions/install_signer.h
index 81d3d7af71b9fb9b3a2f87d8e153533694b1ddf3..0b4bcca56e4009c536e8499fe629f66b2c138d9d 100644
--- a/chrome/browser/extensions/install_signer.h
+++ b/chrome/browser/extensions/install_signer.h
@@ -5,13 +5,13 @@
#ifndef CHROME_BROWSER_EXTENSIONS_INSTALL_SIGNER_H_
#define CHROME_BROWSER_EXTENSIONS_INSTALL_SIGNER_H_
+#include <memory>
#include <set>
#include <string>
#include <vector>
#include "base/callback.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "extensions/common/extension.h"
namespace base {
@@ -53,7 +53,7 @@ struct InstallSignature {
// Helper methods for serialization to/from a base::DictionaryValue.
void ToValue(base::DictionaryValue* value) const;
- static scoped_ptr<InstallSignature> FromValue(
+ static std::unique_ptr<InstallSignature> FromValue(
const base::DictionaryValue& value);
};
@@ -61,7 +61,8 @@ struct InstallSignature {
// that a set of ids are hosted in the webstore.
class InstallSigner {
public:
- typedef base::Callback<void(scoped_ptr<InstallSignature>)> SignatureCallback;
+ typedef base::Callback<void(std::unique_ptr<InstallSignature>)>
+ SignatureCallback;
// IMPORTANT NOTE: It is possible that only some, but not all, of the entries
// in |ids| will be successfully signed by the backend. Callers should always
@@ -115,8 +116,8 @@ class InstallSigner {
// These are used to make the call to a backend server for a signature.
net::URLRequestContextGetter* context_getter_;
- scoped_ptr<net::URLFetcher> url_fetcher_;
- scoped_ptr<FetcherDelegate> delegate_;
+ std::unique_ptr<net::URLFetcher> url_fetcher_;
+ std::unique_ptr<FetcherDelegate> delegate_;
// The time the request to the server was started.
base::Time request_start_time_;
« no previous file with comments | « chrome/browser/extensions/global_shortcut_listener_win.h ('k') | chrome/browser/extensions/install_signer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698