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

Unified Diff: chrome/browser/chromeos/display/quirks_browsertest.cc

Issue 1870793002: Convert //chrome/browser/chromeos 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/chromeos/display/quirks_browsertest.cc
diff --git a/chrome/browser/chromeos/display/quirks_browsertest.cc b/chrome/browser/chromeos/display/quirks_browsertest.cc
index 60ea7af13d3cc444bee421b7ce30840752262863..bd1489d1ebe16233b90bdc70328d5d261ad4739c 100644
--- a/chrome/browser/chromeos/display/quirks_browsertest.cc
+++ b/chrome/browser/chromeos/display/quirks_browsertest.cc
@@ -4,6 +4,7 @@
#include "base/command_line.h"
#include "base/files/file_util.h"
+#include "base/memory/ptr_util.h"
#include "base/run_loop.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/quirks/quirks_manager.h"
@@ -20,23 +21,23 @@ const char kFakeIccData[] = {0x00, 0x00, 0x08, 0x90, 0x20, 0x20,
0x20, 0x20, 0x02, 0x10, 0x00, 0x00};
// Create FakeURLFetcher which returns fake icc file json.
-scoped_ptr<net::URLFetcher> CreateFakeURLFetcherSuccess(
+std::unique_ptr<net::URLFetcher> CreateFakeURLFetcherSuccess(
const GURL& url,
net::URLFetcherDelegate* delegate) {
net::URLFetcher* fetcher =
new net::FakeURLFetcher(url, delegate, kFakeIccJson, net::HTTP_OK,
net::URLRequestStatus::SUCCESS);
- return make_scoped_ptr(fetcher);
+ return base::WrapUnique(fetcher);
}
// Create FakeURLFetcher which replies with HTTP_NOT_FOUND.
-scoped_ptr<net::URLFetcher> CreateFakeURLFetcherFailure(
+std::unique_ptr<net::URLFetcher> CreateFakeURLFetcherFailure(
const GURL& url,
net::URLFetcherDelegate* delegate) {
net::URLFetcher* fetcher = new net::FakeURLFetcher(
url, delegate, "File not found", net::HTTP_NOT_FOUND,
net::URLRequestStatus::FAILED);
- return make_scoped_ptr(fetcher);
+ return base::WrapUnique(fetcher);
}
// Full path to fake icc file in <tmp test directory>/display_profiles/.
« no previous file with comments | « chrome/browser/chromeos/display/overscan_calibrator.h ('k') | chrome/browser/chromeos/drive/debug_info_collector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698