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

Unified Diff: chrome/browser/extensions/api/platform_keys/verify_trust_api.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/api/platform_keys/verify_trust_api.h
diff --git a/chrome/browser/extensions/api/platform_keys/verify_trust_api.h b/chrome/browser/extensions/api/platform_keys/verify_trust_api.h
index 96a7aa5e03a83e140e39e5d2fa1655ee31a3f926..1d88b3ec0b7aebe756fc64774c4bb526e8913321 100644
--- a/chrome/browser/extensions/api/platform_keys/verify_trust_api.h
+++ b/chrome/browser/extensions/api/platform_keys/verify_trust_api.h
@@ -5,11 +5,11 @@
#ifndef CHROME_BROWSER_EXTENSIONS_API_PLATFORM_KEYS_VERIFY_TRUST_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_PLATFORM_KEYS_VERIFY_TRUST_API_H_
+#include <memory>
#include <string>
#include "base/callback.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/scoped_observer.h"
#include "content/public/browser/browser_thread.h"
@@ -57,7 +57,7 @@ class VerifyTrustAPI : public BrowserContextKeyedAPI,
// Note: It is safe to delete this object while there are still
// outstanding operations. However, if this happens, |callback|
// will NOT be called.
- void Verify(scoped_ptr<Params> params,
+ void Verify(std::unique_ptr<Params> params,
const std::string& extension_id,
const VerifyCallback& callback);
@@ -95,7 +95,7 @@ class VerifyTrustAPI : public BrowserContextKeyedAPI,
// Created on the UIThread but must be used and destroyed only on the
// IOThread.
- scoped_ptr<IOPart, content::BrowserThread::DeleteOnIOThread> io_part_;
+ std::unique_ptr<IOPart, content::BrowserThread::DeleteOnIOThread> io_part_;
ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
registry_observer_;

Powered by Google App Engine
This is Rietveld 408576698