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

Unified Diff: chrome/browser/extensions/install_verifier.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_verifier.h
diff --git a/chrome/browser/extensions/install_verifier.h b/chrome/browser/extensions/install_verifier.h
index e92b5c9a9fb75c67c75062aa15010e8f5e79c8fd..b04e67051be66fb4ba4fcbd9c9b1aa5e4e145ea2 100644
--- a/chrome/browser/extensions/install_verifier.h
+++ b/chrome/browser/extensions/install_verifier.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_EXTENSIONS_INSTALL_VERIFIER_H_
#define CHROME_BROWSER_EXTENSIONS_INSTALL_VERIFIER_H_
+#include <memory>
#include <queue>
#include <set>
#include <string>
@@ -12,7 +13,6 @@
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/linked_ptr.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "components/keyed_service/core/keyed_service.h"
#include "extensions/browser/management_policy.h"
@@ -152,7 +152,7 @@ class InstallVerifier : public KeyedService,
void SaveToPrefs();
// Called with the result of a signature request, or NULL on failure.
- void SignatureCallback(scoped_ptr<InstallSignature> signature);
+ void SignatureCallback(std::unique_ptr<InstallSignature> signature);
ExtensionPrefs* prefs_;
@@ -164,10 +164,10 @@ class InstallVerifier : public KeyedService,
// This is the most up-to-date signature, read out of |prefs_| during
// initialization and updated anytime we get new id's added.
- scoped_ptr<InstallSignature> signature_;
+ std::unique_ptr<InstallSignature> signature_;
// The current InstallSigner, if we have a signature request running.
- scoped_ptr<InstallSigner> signer_;
+ std::unique_ptr<InstallSigner> signer_;
// A queue of operations to apply to the current set of allowed ids.
std::queue<linked_ptr<PendingOperation> > operation_queue_;
« no previous file with comments | « chrome/browser/extensions/install_tracker_unittest.cc ('k') | chrome/browser/extensions/install_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698