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

Unified Diff: chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
index a223179b009ad082709c2c0106b6c17a9830e619..aa481f16c4d83cc8006cf47ef0cd976e785134e1 100644
--- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
@@ -4,13 +4,14 @@
#include <stdint.h>
+#include <memory>
+
#include "base/bind.h"
#include "base/callback.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/location.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "build/build_config.h"
#include "chrome/browser/local_discovery/test_service_discovery_client.h"
@@ -325,14 +326,14 @@ class MockableFakeURLFetcherCreator {
MOCK_METHOD1(OnCreateFakeURLFetcher, void(const std::string& url));
- scoped_ptr<net::FakeURLFetcher> CreateFakeURLFetcher(
+ std::unique_ptr<net::FakeURLFetcher> CreateFakeURLFetcher(
const GURL& url,
net::URLFetcherDelegate* delegate,
const std::string& response_data,
net::HttpStatusCode response_code,
net::URLRequestStatus::Status status) {
OnCreateFakeURLFetcher(url.spec());
- return scoped_ptr<net::FakeURLFetcher>(new net::FakeURLFetcher(
+ return std::unique_ptr<net::FakeURLFetcher>(new net::FakeURLFetcher(
url, delegate, response_data, response_code, status));
}
« no previous file with comments | « chrome/browser/ui/webui/large_icon_source.h ('k') | chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698