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

Unified Diff: chrome/browser/ui/browser_close_unittest.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
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | chrome/browser/ui/browser_command_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_close_unittest.cc
diff --git a/chrome/browser/ui/browser_close_unittest.cc b/chrome/browser/ui/browser_close_unittest.cc
index d427d1e4bf8562b0aa905c453dd68d666b503890..27f5fa8a7214842936ea8ab8f69739fa2d4e5245 100644
--- a/chrome/browser/ui/browser_close_unittest.cc
+++ b/chrome/browser/ui/browser_close_unittest.cc
@@ -60,7 +60,7 @@ class TestingDownloadService : public DownloadService {
void CancelDownloads() override {}
void SetDownloadManagerDelegateForTesting(
- scoped_ptr<ChromeDownloadManagerDelegate> delegate) override {
+ std::unique_ptr<ChromeDownloadManagerDelegate> delegate) override {
ADD_FAILURE();
}
@@ -77,9 +77,9 @@ class TestingDownloadService : public DownloadService {
DISALLOW_COPY_AND_ASSIGN(TestingDownloadService);
};
-static scoped_ptr<KeyedService> CreateTestingDownloadService(
+static std::unique_ptr<KeyedService> CreateTestingDownloadService(
content::BrowserContext* browser_context) {
- return scoped_ptr<KeyedService>(new TestingDownloadService());
+ return std::unique_ptr<KeyedService>(new TestingDownloadService());
}
class BrowserCloseTest : public testing::Test {
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | chrome/browser/ui/browser_command_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698