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

Unified Diff: android_webview/browser/net/token_binding_manager.cc

Issue 1852513003: Convert //android_webview to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git is hard Created 4 years, 9 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: android_webview/browser/net/token_binding_manager.cc
diff --git a/android_webview/browser/net/token_binding_manager.cc b/android_webview/browser/net/token_binding_manager.cc
index 7cf7c644eb3701d6bef1276d1819901a4874eec9..7ec0292056b39f570fb1b55231ca8e39c506f503 100644
--- a/android_webview/browser/net/token_binding_manager.cc
+++ b/android_webview/browser/net/token_binding_manager.cc
@@ -21,7 +21,7 @@ namespace {
void CompletionCallback(TokenBindingManager::KeyReadyCallback callback,
ChannelIDService::Request* request,
- scoped_ptr<crypto::ECPrivateKey>* key,
+ std::unique_ptr<crypto::ECPrivateKey>* key,
int status) {
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
@@ -39,8 +39,8 @@ void GetKeyImpl(const std::string& host,
ChannelIDService* service =
context_getter->GetURLRequestContext()->channel_id_service();
ChannelIDService::Request* request = new ChannelIDService::Request();
- scoped_ptr<crypto::ECPrivateKey>* key =
- new scoped_ptr<crypto::ECPrivateKey>();
+ std::unique_ptr<crypto::ECPrivateKey>* key =
+ new std::unique_ptr<crypto::ECPrivateKey>();
// The request will own the callback if the call to service returns
// PENDING. The request releases the ownership before calling the callback.
net::CompletionCallback completion_callback = base::Bind(

Powered by Google App Engine
This is Rietveld 408576698