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

Unified Diff: chrome/browser/extensions/api/networking_private/networking_private_service_client_apitest.cc

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/networking_private/networking_private_service_client_apitest.cc
diff --git a/chrome/browser/extensions/api/networking_private/networking_private_service_client_apitest.cc b/chrome/browser/extensions/api/networking_private/networking_private_service_client_apitest.cc
index ecb8d093bb90a5f222c231790ea1f19b20b0cbed..574cd8367bf92ab08d58caf5d4fdfc14c08170fa 100644
--- a/chrome/browser/extensions/api/networking_private/networking_private_service_client_apitest.cc
+++ b/chrome/browser/extensions/api/networking_private/networking_private_service_client_apitest.cc
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/callback.h"
#include "base/command_line.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/api/networking_private/networking_private_credentials_getter.h"
#include "chrome/browser/extensions/extension_apitest.h"
@@ -86,11 +86,12 @@ class NetworkingPrivateServiceClientApiTest : public ExtensionApiTest {
"epcifkihnkjgphfkloaaleeakhpmgdmn");
}
- static scoped_ptr<KeyedService> CreateNetworkingPrivateServiceClient(
+ static std::unique_ptr<KeyedService> CreateNetworkingPrivateServiceClient(
content::BrowserContext* context) {
- scoped_ptr<wifi::FakeWiFiService> wifi_service(new wifi::FakeWiFiService());
- scoped_ptr<CryptoVerifyStub> crypto_verify(new CryptoVerifyStub);
- return scoped_ptr<KeyedService>(new NetworkingPrivateServiceClient(
+ std::unique_ptr<wifi::FakeWiFiService> wifi_service(
+ new wifi::FakeWiFiService());
+ std::unique_ptr<CryptoVerifyStub> crypto_verify(new CryptoVerifyStub);
+ return std::unique_ptr<KeyedService>(new NetworkingPrivateServiceClient(
std::move(wifi_service), std::move(crypto_verify)));
}

Powered by Google App Engine
This is Rietveld 408576698